Commit e8ac80fb authored by Laurent Aimar's avatar Laurent Aimar Committed by Janne Grunau

error_resilience: fix the check for missing references in ff_er_frame_end() for H264

Signed-off-by: 's avatarJanne Grunau <janne-libav@jannau.net>
parent 1b1182ce
......@@ -652,7 +652,7 @@ static int is_intra_more_likely(MpegEncContext *s){
if(s->codec_id == CODEC_ID_H264){
H264Context *h= (void*)s;
if (h->ref_count[0] <= 0 || !h->ref_list[0][0].f.data[0])
if (h->list_count <= 0 || h->ref_count[0] <= 0 || !h->ref_list[0][0].f.data[0])
return 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment