aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo_xvmc.c
diff options
context:
space:
mode:
authorIvan Kalvachev <ikalvachev@gmail.com>2009-02-15 02:36:43 +0000
committerIvan Kalvachev <ikalvachev@gmail.com>2009-02-15 02:36:43 +0000
commita0723a4d842a32f2c51840e588d107ab3ff84c17 (patch)
tree7246303eb39db9c51590af37a45dc8b755c6026c /libavcodec/mpegvideo_xvmc.c
parent49674dd05235d45caeac0129c1e9dc0bcfea14ea (diff)
downloadffmpeg-a0723a4d842a32f2c51840e588d107ab3ff84c17.tar.gz
Give a little better name to the magic(_id) field in xvmc struct
Originally committed as revision 17310 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo_xvmc.c')
-rw-r--r--libavcodec/mpegvideo_xvmc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c
index 0ec1f55d30..7fd4244035 100644
--- a/libavcodec/mpegvideo_xvmc.c
+++ b/libavcodec/mpegvideo_xvmc.c
@@ -38,7 +38,7 @@
void ff_xvmc_init_block(MpegEncContext *s)
{
struct xvmc_render_state *render = (struct xvmc_render_state*)s->current_picture.data[2];
- if (!render || render->magic != AV_XVMC_RENDER_MAGIC) {
+ if (!render || render->magic_id != AV_XVMC_RENDER_MAGIC) {
assert(0);
return; // make sure that this is a render packet
}
@@ -69,7 +69,7 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
struct xvmc_render_state *last, *next, *render = (struct xvmc_render_state*)s->current_picture.data[2];
assert(avctx);
- if (!render || render->magic != AV_XVMC_RENDER_MAGIC)
+ if (!render || render->magic_id != AV_XVMC_RENDER_MAGIC)
return -1; // make sure that this is a render packet
render->picture_structure = s->picture_structure;
@@ -92,7 +92,7 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
next = (struct xvmc_render_state*)s->next_picture.data[2];
if (!next)
return -1;
- if (next->magic != AV_XVMC_RENDER_MAGIC)
+ if (next->magic_id != AV_XVMC_RENDER_MAGIC)
return -1;
render->p_future_surface = next->p_surface;
// no return here, going to set forward prediction
@@ -100,7 +100,7 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
last = (struct xvmc_render_state*)s->last_picture.data[2];
if (!last)
last = render; // predict second field from the first
- if (last->magic != AV_XVMC_RENDER_MAGIC)
+ if (last->magic_id != AV_XVMC_RENDER_MAGIC)
return -1;
render->p_past_surface = last->p_surface;
return 0;
@@ -154,7 +154,7 @@ void ff_xvmc_decode_mb(MpegEncContext *s)
// start of XVMC-specific code
render = (struct xvmc_render_state*)s->current_picture.data[2];
assert(render);
- assert(render->magic == AV_XVMC_RENDER_MAGIC);
+ assert(render->magic_id == AV_XVMC_RENDER_MAGIC);
assert(render->mv_blocks);
// take the next free macroblock