diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index 26711c0d85..eaf965e43d 100644 --- a/libavcodec/h264_refs.c +++ b/libavcodec/h264_refs.c @@ -812,6 +812,7 @@ int ff_h264_execute_ref_pic_marking(H264Context *h) } } + // Detect unmarked random access points if ( err >= 0 && h->long_ref_count==0 && ( h->short_ref_count<=2