[FFmpeg-cvslog] h264: change MAX_DELAYED_PIC_COUNT check to av_assert0

Michael Niedermayer git at videolan.org
Wed Sep 21 21:08:28 CEST 2011


ffmpeg | branch: release/0.8 | Michael Niedermayer <michaelni at gmx.at> | Wed Aug 31 05:00:39 2011 +0200| [1979a9b4f205d9446c3e11353b57b5d9bd3dad4e] | committer: Michael Niedermayer

h264: change MAX_DELAYED_PIC_COUNT check to av_assert0

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

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

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

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 8ecf9b4..3a1fa02 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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)



More information about the ffmpeg-cvslog mailing list