Commit 8b09f1e6 authored by iive's avatar iive

Almost cosmetics.

Move some assignments after the checks.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17318 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 95a615dd
...@@ -75,9 +75,6 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx) ...@@ -75,9 +75,6 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
return -1; // make sure that this is a render packet 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) { if (render->filled_mv_blocks_num) {
av_log(avctx, AV_LOG_ERROR, av_log(avctx, AV_LOG_ERROR,
"Rendering surface contains %i unprocessed blocks.\n", "Rendering surface contains %i unprocessed blocks.\n",
...@@ -97,6 +94,8 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx) ...@@ -97,6 +94,8 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
return -1; return -1;
} }
render->picture_structure = s->picture_structure;
render->flags = s->first_field ? 0 : XVMC_SECOND_FIELD;
render->p_future_surface = NULL; render->p_future_surface = NULL;
render->p_past_surface = NULL; render->p_past_surface = NULL;
......
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