diff options
author | Ivan Kalvachev <ikalvachev@gmail.com> | 2009-02-15 17:21:37 +0000 |
---|---|---|
committer | Ivan Kalvachev <ikalvachev@gmail.com> | 2009-02-15 17:21:37 +0000 |
commit | 11f8aa042dc4708d3d80465fa44aefd116a9bf77 (patch) | |
tree | bfd9d09a54adca1264249a90ea63d0fee50367c1 /libavcodec/mpegvideo_xvmc.c | |
parent | 9043202e6e4a9711a4ea0519876cbc50674402e9 (diff) | |
download | ffmpeg-11f8aa042dc4708d3d80465fa44aefd116a9bf77.tar.gz |
Kill the magic field in xvmc structure.
Originally committed as revision 17338 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo_xvmc.c')
-rw-r--r-- | libavcodec/mpegvideo_xvmc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c index ddb154784f..bd2318d6bc 100644 --- a/libavcodec/mpegvideo_xvmc.c +++ b/libavcodec/mpegvideo_xvmc.c @@ -38,7 +38,7 @@ void ff_xvmc_init_block(MpegEncContext *s) { struct xvmc_pixfmt_render *render = (struct xvmc_pixfmt_render*)s->current_picture.data[2]; - assert(render && render->magic_id == AV_XVMC_RENDER_MAGIC); + assert(render && render->unique_id == AV_XVMC_RENDER_MAGIC); s->block = (DCTELEM *)(render->data_blocks + render->next_free_data_block_num * 64); } @@ -68,7 +68,7 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx) const int mb_block_count = 4 + (1 << s->chroma_format); assert(avctx); - if (!render || render->magic_id != AV_XVMC_RENDER_MAGIC || + if (!render || render->unique_id != AV_XVMC_RENDER_MAGIC || !render->data_blocks || !render->mv_blocks) { av_log(avctx, AV_LOG_ERROR, "Render token doesn't look as expected.\n"); @@ -100,7 +100,7 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx) next = (struct xvmc_pixfmt_render*)s->next_picture.data[2]; if (!next) return -1; - if (next->magic_id != AV_XVMC_RENDER_MAGIC) + if (next->unique_id != AV_XVMC_RENDER_MAGIC) return -1; render->p_future_surface = next->p_surface; // no return here, going to set forward prediction @@ -108,7 +108,7 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx) last = (struct xvmc_pixfmt_render*)s->last_picture.data[2]; if (!last) last = render; // predict second field from the first - if (last->magic_id != AV_XVMC_RENDER_MAGIC) + if (last->unique_id != AV_XVMC_RENDER_MAGIC) return -1; render->p_past_surface = last->p_surface; return 0; @@ -162,7 +162,7 @@ void ff_xvmc_decode_mb(MpegEncContext *s) // start of XVMC-specific code render = (struct xvmc_pixfmt_render*)s->current_picture.data[2]; assert(render); - assert(render->magic_id == AV_XVMC_RENDER_MAGIC); + assert(render->unique_id == AV_XVMC_RENDER_MAGIC); assert(render->mv_blocks); // take the next free macroblock |