mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
error_resilience: fix the check for missing references in ff_er_frame_end() for H264
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
This commit is contained in:
parent
1b1182ce97
commit
e8ac80fb2c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user