Hi,
how can I get the information if all video samples are independent (using the SourceReader API)? I tried MF_MT_ALL_SAMPLES_INDEPENDENT; but the return value is always that this attribute was not found. Using the MF_MT_MAX_KEYFRAME_SPACING attribute, I get the same behaviour.
PROPVARIANT var;
hr = sourceReader->GetPresentationAttribute (MF_SOURCE_READER_FIRST_VIDEO_STREAM, MF_MT_VIDEO_CHROMA_SITING, &var);
LONGLONG chroma;
hr = PropVariantToInt64 (var, &chroma);
PropVariantClear (&var);
hr = sourceReader->GetPresentationAttribute (MF_SOURCE_READER_FIRST_VIDEO_STREAM, MF_MT_MAX_KEYFRAME_SPACING, &var);
hr = sourceReader->GetPresentationAttribute (MF_SOURCE_READER_FIRST_VIDEO_STREAM, MF_MT_ALL_SAMPLES_INDEPENDENT, &var);
best regards
saoirse