diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-10-02 00:38:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-02 03:24:17 +0200 |
commit | e1d5bbeb39501a3271c6422390d13bf9391872d1 (patch) | |
tree | 967a46ead1477b0098688b9434087608bfada230 | |
parent | 90a69b2f61cbd2d58723d712bdf283e5e56b2ea2 (diff) | |
download | ffmpeg-e1d5bbeb39501a3271c6422390d13bf9391872d1.tar.gz |
Fix the check for missing references in ff_er_frame_end() for H264.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/error_resilience.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c index 3fb95ead88..cf967bf215 100644 --- a/libavcodec/error_resilience.c +++ b/libavcodec/error_resilience.c @@ -660,7 +660,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; } |