[FFmpeg-cvslog] h264: set ref_count to 0 for intra slices.
Anton Khirnov
git at videolan.org
Sat Mar 2 12:21:13 CET 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Feb 14 11:44:33 2013 +0100| [437211ae73ef1ed8285b4fed7620502ea4999e11] | committer: Anton Khirnov
h264: set ref_count to 0 for intra slices.
CC:libav-stable at libav.org
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=437211ae73ef1ed8285b4fed7620502ea4999e11
---
libavcodec/h264.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 7d24df2..e7186c8 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3384,8 +3384,11 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
h->list_count = 2;
else
h->list_count = 1;
- } else
+ } else {
h->list_count = 0;
+ h->ref_count[0] = h->ref_count[1] = 0;
+ }
+
max_refs = h->picture_structure == PICT_FRAME ? 16 : 32;
More information about the ffmpeg-cvslog
mailing list