h264_refs: assert that the references are not deallocated
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 30 Mar 2013 17:39:09 +0000 (18:39 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 30 Mar 2013 19:28:00 +0000 (20:28 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264_refs.c

index d83758d..9b16d1d 100644 (file)
@@ -317,6 +317,7 @@ int ff_h264_decode_ref_pic_list_reordering(H264Context *h)
                 else
                     return -1;
             }
+            av_assert0(av_buffer_get_ref_count(h->ref_list[list][index].f.buf[0]) > 0);
         }
     }