summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo_xvmc.c
diff options
context:
space:
mode:
authorIvan Kalvachev <ikalvachev@gmail.com>2009-02-15 10:14:16 +0000
committerIvan Kalvachev <ikalvachev@gmail.com>2009-02-15 10:14:16 +0000
commitd76c5ed574faac1aa1533378e35ff78730dcc2ab (patch)
tree6f7d17abd86d72a03b38adf4b2c1e2d47465b205 /libavcodec/mpegvideo_xvmc.c
parentd2d600b71fd94aa97e503b695e4a57d6581a60e8 (diff)
downloadffmpeg-d76c5ed574faac1aa1533378e35ff78730dcc2ab.tar.gz
Almost cosmetics.
Move some assignments after the checks. Originally committed as revision 17318 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo_xvmc.c')
-rw-r--r--libavcodec/mpegvideo_xvmc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c
index 3b3e360847..a11a3c25e6 100644
--- a/libavcodec/mpegvideo_xvmc.c
+++ b/libavcodec/mpegvideo_xvmc.c
@@ -75,9 +75,6 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
return -1; // make sure that this is a render packet
}
- render->picture_structure = s->picture_structure;
- render->flags = s->first_field ? 0 : XVMC_SECOND_FIELD;
-
if (render->filled_mv_blocks_num) {
av_log(avctx, AV_LOG_ERROR,
"Rendering surface contains %i unprocessed blocks.\n",
@@ -97,6 +94,8 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
return -1;
}
+ render->picture_structure = s->picture_structure;
+ render->flags = s->first_field ? 0 : XVMC_SECOND_FIELD;
render->p_future_surface = NULL;
render->p_past_surface = NULL;