Remove redundant assert(render) in ff_xvmc_init_block(). The immediately

following if condition checks render and does an assert if it fails.

Originally committed as revision 17304 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Diego Biurrun 16 years ago
parent e26f8d76d7
commit 967d2ae616
  1. 1
      libavcodec/mpegvideo_xvmc.c

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

Loading…
Cancel
Save