diff --git a/libavcodec/h264.c b/libavcodec/h264.c index f59d0b9067..e4e1875bd4 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3581,6 +3581,7 @@ static int execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){ h->short_ref_count++; s->current_picture_ptr->reference |= s->picture_structure; } + } if (h->long_ref_count + h->short_ref_count > h->sps.ref_frame_count){