Remove redundant assert(render) in ff_xvmc_init_block(). The immediately
authorDiego Biurrun <diego@biurrun.de>
Sun, 15 Feb 2009 01:24:09 +0000 (01:24 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sun, 15 Feb 2009 01:24:09 +0000 (01:24 +0000)
following if condition checks render and does an assert if it fails.

Originally committed as revision 17304 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo_xvmc.c

index 121a50e..dc5dd74 100644 (file)
@@ -38,7 +38,6 @@
 void ff_xvmc_init_block(MpegEncContext *s)
 {
     struct xvmc_render_state *render = (struct xvmc_render_state*)s->current_picture.data[2];
-    assert(render);
     if (!render || render->magic != AV_XVMC_RENDER_MAGIC) {
         assert(0);
         return; // make sure that this is a render packet