aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2011-10-02 00:38:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-02 05:47:46 +0200
commitd2a276a3fd7b34583ee7e8e7ec4c8fb85791c674 (patch)
tree4946f15b928aa74a87765ea3f3ff03ee57ab2f5c
parent535112b3658c21d1f9c4d2b44689342a32ff6eea (diff)
downloadffmpeg-d2a276a3fd7b34583ee7e8e7ec4c8fb85791c674.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c
index d6ac81f009..0e410f96e8 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].data[0])
+ if (h->list_count <= 0 || h->ref_count[0] <= 0 || !h->ref_list[0][0].data[0])
return 1;
}