Commit ac2ad99e authored by iive's avatar iive

remove assertion that use external definitions


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17241 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ae5107b5
...@@ -93,7 +93,6 @@ int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx) ...@@ -93,7 +93,6 @@ int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx)
case FF_B_TYPE: case FF_B_TYPE:
next = (struct xvmc_render_state*)s->next_picture.data[2]; next = (struct xvmc_render_state*)s->next_picture.data[2];
assert(next!=NULL); assert(next!=NULL);
assert(next->state & MP_XVMC_STATE_PREDICTION);
if (next == NULL) if (next == NULL)
return -1; return -1;
if (next->magic != MP_XVMC_RENDER_MAGIC) if (next->magic != MP_XVMC_RENDER_MAGIC)
...@@ -106,7 +105,6 @@ int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx) ...@@ -106,7 +105,6 @@ int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx)
last = render;//predict second field from the first last = render;//predict second field from the first
if (last->magic != MP_XVMC_RENDER_MAGIC) if (last->magic != MP_XVMC_RENDER_MAGIC)
return -1; return -1;
assert(last->state & MP_XVMC_STATE_PREDICTION);
render->p_past_surface = last->p_surface; render->p_past_surface = last->p_surface;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment