aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2011-10-02 00:48:12 +0000
committerJanne Grunau <janne-libav@jannau.net>2011-10-10 21:37:36 +0200
commite8ac80fb2c587cc507d9533af8f4313924ee05a1 (patch)
tree363dcabcb4549ffcef6052bc5d6093f1c61612e3 /libavcodec
parent1b1182ce97db7a97914bb7713eba66fee5d93937 (diff)
downloadffmpeg-e8ac80fb2c587cc507d9533af8f4313924ee05a1.tar.gz
error_resilience: fix the check for missing references in ff_er_frame_end() for H264
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/error_resilience.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c
index 11e2636242..23ac904c6c 100644
--- a/libavcodec/error_resilience.c
+++ b/libavcodec/error_resilience.c
@@ -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;
}