Mercurial > libavcodec.hg
changeset 8917:422a9dbebb53 libavcodec
Almost cosmetics.
Move some assignments after the checks.
author | iive |
---|---|
date | Sun, 15 Feb 2009 10:14:16 +0000 |
parents | bd643af669df |
children | b27254b4f633 |
files | mpegvideo_xvmc.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegvideo_xvmc.c Sun Feb 15 10:06:23 2009 +0000 +++ b/mpegvideo_xvmc.c Sun Feb 15 10:14:16 2009 +0000 @@ -75,9 +75,6 @@ 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 @@ 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;