Currently, the IdrPicFlag of an auxiliary coded picture is inferred from the most recent slice of a non-auxiliary coded picture, regardless of whether said slice is part of the primary coded picture or a redundant coded picture. This is against the specifications which say that IdrPicFlag should be derived from the primary coded picture.
Notice that an access unit can very well have an IDR picture as primary picture and a non-IDR picture as redundant coded picture, namely if the redundant coded picture contains a memory_management_control_operation equal to 5. See NOTE 8 in the semantics of redundant_pic_cnt. I unfortunately have no sample for this. Andreas Rheinhardt (1): cbs_h264: Fix handling of auxiliary pictures libavcodec/cbs_h264_syntax_template.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) -- 2.19.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel