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

Michael Niedermayer git at videolan.org
Sun Oct 2 00:53:56 CEST 2011


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

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 7927754..f2bd756 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2903,7 +2903,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