h264: change MAX_DELAYED_PIC_COUNT check to av_assert0
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 31 Aug 2011 03:00:39 +0000 (05:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Sep 2011 15:56:14 +0000 (17:56 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit b955ab2f492e3b8c4cbf614f68f8d5bf79e1d1e1)

libavcodec/h264.c

index 8ecf9b4..3a1fa02 100644 (file)
@@ -1403,7 +1403,7 @@ static void decode_postinit(H264Context *h, int setup_finished){
     pics = 0;
     while(h->delayed_pic[pics]) pics++;
 
-    assert(pics <= MAX_DELAYED_PIC_COUNT);
+    av_assert0(pics <= MAX_DELAYED_PIC_COUNT);
 
     h->delayed_pic[pics++] = cur;
     if(cur->reference == 0)