diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-26 21:46:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-26 22:29:55 +0200 |
commit | 205f423e28bcb1070bf83906371ed2fa87735396 (patch) | |
tree | 1353b4e1f820dabf441648d153132b5a94442492 /libavcodec/mpegvideo.c | |
parent | c88bbc01eb7f67f7399fb89800bf1bfc89edb248 (diff) | |
download | ffmpeg-205f423e28bcb1070bf83906371ed2fa87735396.tar.gz |
libavcodec/mpegvideo: change some asserts to av_assert0()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 12123cda0e..4116f340d9 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -386,10 +386,10 @@ int ff_alloc_picture(MpegEncContext *s, Picture *pic, int shared) free_picture_tables(pic); if (shared) { - assert(pic->f.data[0]); + av_assert0(pic->f.data[0]); pic->shared = 1; } else { - assert(!pic->f.data[0]); + av_assert0(!pic->f.data[0]); if (alloc_frame_buffer(s, pic) < 0) return -1; @@ -1669,7 +1669,7 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) return ret; } - assert(s->pict_type == AV_PICTURE_TYPE_I || (s->last_picture_ptr && + av_assert0(s->pict_type == AV_PICTURE_TYPE_I || (s->last_picture_ptr && s->last_picture_ptr->f.data[0])); if (s->picture_structure!= PICT_FRAME) { |