[FFmpeg-cvslog] h264: set unused ref_counts to 0 as a precautionary meassure.

Michael Niedermayer git at videolan.org
Sun Oct 2 05:59:52 CEST 2011


ffmpeg | branch: release/0.8 | Michael Niedermayer <michaelni at gmx.at> | Sun Oct  2 00:45:41 2011 +0200| [3e0dbb8a7ed118308cdddac803063b2cd09de37b] | committer: Michael Niedermayer

h264: set unused ref_counts to 0 as a precautionary meassure.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 3af2de76ac8b7aa762e4ee129ec29140e6247d81)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e0dbb8a7ed118308cdddac803063b2cd09de37b
---

 libavcodec/h264.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 9c7bf24..a889f42 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2901,7 +2901,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
         else
             h->list_count= 1;
     }else
-        h->list_count= 0;
+        h->ref_count[1]= h->ref_count[0]= h->list_count= 0;
 
     if(!default_ref_list_done){
         ff_h264_fill_default_ref_list(h);



More information about the ffmpeg-cvslog mailing list