h264: set unused ref_counts to 0 as a precautionary meassure.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 1 Oct 2011 22:45:41 +0000 (00:45 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 2 Oct 2011 03:44:35 +0000 (05:44 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 3af2de76ac8b7aa762e4ee129ec29140e6247d81)

libavcodec/h264.c

index 9c7bf24..a889f42 100644 (file)
@@ -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);