aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-08-31 05:00:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-21 17:56:14 +0200
commit1979a9b4f205d9446c3e11353b57b5d9bd3dad4e (patch)
treef6430ea4308152b32c58528816e967348bf6d8dc /libavcodec/h264.c
parent3af3a871afa31f570ce92e6a6647cb55357f62b5 (diff)
downloadffmpeg-1979a9b4f205d9446c3e11353b57b5d9bd3dad4e.tar.gz
h264: change MAX_DELAYED_PIC_COUNT check to av_assert0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit b955ab2f492e3b8c4cbf614f68f8d5bf79e1d1e1)
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 8ecf9b4dbd..3a1fa02998 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)