Commit 205f423e authored by Michael Niedermayer's avatar Michael Niedermayer

libavcodec/mpegvideo: change some asserts to av_assert0()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c88bbc01
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment