[FFmpeg-cvslog] Fix the check for missing references in ff_er_frame_end() for H264.
Laurent Aimar
git at videolan.org
Sun Oct 2 05:59:52 CEST 2011
ffmpeg | branch: release/0.8 | Laurent Aimar <fenrir at videolan.org> | Sun Oct 2 00:38:31 2011 +0200| [d2a276a3fd7b34583ee7e8e7ec4c8fb85791c674] | committer: Michael Niedermayer
Fix the check for missing references in ff_er_frame_end() for H264.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d2a276a3fd7b34583ee7e8e7ec4c8fb85791c674
---
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 d6ac81f..0e410f9 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;
}
More information about the ffmpeg-cvslog
mailing list