# HG changeset patch # User iive # Date 1234692856 0 # Node ID 422a9dbebb532eca351beb76d93e3b4edfb64ecf # Parent bd643af669df89336e2890d67e8cb0039dc6fa43 Almost cosmetics. Move some assignments after the checks. diff -r bd643af669df -r 422a9dbebb53 mpegvideo_xvmc.c --- 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;