comparison mpegvideo_xvmc.c @ 8842:6491f179eff0 libavcodec

remove assertion that use external definitions
author iive
date Sat, 14 Feb 2009 16:53:42 +0000
parents 867767165fa8
children 9ea7195b2ed4
comparison
equal deleted inserted replaced
8841:e4d2897f4bef 8842:6491f179eff0
91 case FF_I_TYPE: 91 case FF_I_TYPE:
92 return 0;// no prediction from other frames 92 return 0;// no prediction from other frames
93 case FF_B_TYPE: 93 case FF_B_TYPE:
94 next = (struct xvmc_render_state*)s->next_picture.data[2]; 94 next = (struct xvmc_render_state*)s->next_picture.data[2];
95 assert(next!=NULL); 95 assert(next!=NULL);
96 assert(next->state & MP_XVMC_STATE_PREDICTION);
97 if (next == NULL) 96 if (next == NULL)
98 return -1; 97 return -1;
99 if (next->magic != MP_XVMC_RENDER_MAGIC) 98 if (next->magic != MP_XVMC_RENDER_MAGIC)
100 return -1; 99 return -1;
101 render->p_future_surface = next->p_surface; 100 render->p_future_surface = next->p_surface;
104 last = (struct xvmc_render_state*)s->last_picture.data[2]; 103 last = (struct xvmc_render_state*)s->last_picture.data[2];
105 if (last == NULL)// && !s->first_field) 104 if (last == NULL)// && !s->first_field)
106 last = render;//predict second field from the first 105 last = render;//predict second field from the first
107 if (last->magic != MP_XVMC_RENDER_MAGIC) 106 if (last->magic != MP_XVMC_RENDER_MAGIC)
108 return -1; 107 return -1;
109 assert(last->state & MP_XVMC_STATE_PREDICTION);
110 render->p_past_surface = last->p_surface; 108 render->p_past_surface = last->p_surface;
111 return 0; 109 return 0;
112 } 110 }
113 111
114 return -1; 112 return -1;