[FFmpeg-cvslog] error_resilience: fix the check for missing references in ff_er_frame_end() for H264
Laurent Aimar
git at videolan.org
Tue Oct 11 03:52:36 CEST 2011
ffmpeg | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Oct 2 00:48:12 2011 +0000| [e8ac80fb2c587cc507d9533af8f4313924ee05a1] | committer: Janne Grunau
error_resilience: fix the check for missing references in ff_er_frame_end() for H264
Signed-off-by: Janne Grunau <janne-libav at jannau.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e8ac80fb2c587cc507d9533af8f4313924ee05a1
---
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 11e2636..23ac904 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;
}
More information about the ffmpeg-cvslog
mailing list