[FFmpeg-devel] [PATCH 6/7] Fix the check for missing references in ff_er_frame_end() for H264.

fenrir at elivagar.org fenrir at elivagar.org
Sun Oct 2 00:38:31 CEST 2011


From: Laurent Aimar <fenrir at videolan.org>

---
 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 3fb95ea..cf967bf 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;
     }
 
-- 
1.7.2.5



More information about the ffmpeg-devel mailing list