changeset 8904:68ae28d8fad3 libavcodec

Remove asserts that are immediately followed by a check and error return.
author diego
date Sun, 15 Feb 2009 00:52:16 +0000
parents 9f1f4704d89c
children 3c83f05884a0
files mpegvideo_xvmc.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo_xvmc.c	Sun Feb 15 00:40:57 2009 +0000
+++ b/mpegvideo_xvmc.c	Sun Feb 15 00:52:16 2009 +0000
@@ -70,7 +70,6 @@
     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 @@
             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)