[FFmpeg-cvslog] r17303 - trunk/libavcodec/mpegvideo_xvmc.c
diego
subversion
Sun Feb 15 01:52:16 CET 2009
Author: diego
Date: Sun Feb 15 01:52:16 2009
New Revision: 17303
Log:
Remove asserts that are immediately followed by a check and error return.
Modified:
trunk/libavcodec/mpegvideo_xvmc.c
Modified: trunk/libavcodec/mpegvideo_xvmc.c
==============================================================================
--- trunk/libavcodec/mpegvideo_xvmc.c Sun Feb 15 01:40:57 2009 (r17302)
+++ trunk/libavcodec/mpegvideo_xvmc.c Sun Feb 15 01:52:16 2009 (r17303)
@@ -70,7 +70,6 @@ int ff_xvmc_field_start(MpegEncContext*s
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
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)
More information about the ffmpeg-cvslog
mailing list