diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-02-15 00:52:16 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-02-15 00:52:16 +0000 |
commit | e26f8d76d7421605734ac89bfb4354e8a98ca5b4 (patch) | |
tree | cf439f91e92b35f47a4f966a546b45faabaa2f66 /libavcodec | |
parent | 3af6c3dd9a00be8a8ae23baa035942e44001a992 (diff) | |
download | ffmpeg-e26f8d76d7421605734ac89bfb4354e8a98ca5b4.tar.gz |
Remove asserts that are immediately followed by a check and error return.
Originally committed as revision 17303 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegvideo_xvmc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c index 4b1801e802..121a50ec01 100644 --- a/libavcodec/mpegvideo_xvmc.c +++ b/libavcodec/mpegvideo_xvmc.c @@ -70,7 +70,6 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx) struct xvmc_render_state *last, *next, *render = (struct xvmc_render_state*)s->current_picture.data[2]; assert(avctx); - assert(render); if (!render || render->magic != AV_XVMC_RENDER_MAGIC) return -1; // make sure that this is a render packet @@ -92,7 +91,6 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx) return 0; // no prediction from other frames case FF_B_TYPE: next = (struct xvmc_render_state*)s->next_picture.data[2]; - assert(next); if (!next) return -1; if (next->magic != AV_XVMC_RENDER_MAGIC) |