Mercurial > libavcodec.hg
comparison mpegvideo_xvmc.c @ 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 |
comparison
equal
deleted
inserted
replaced
8916:bd643af669df | 8917:422a9dbebb53 |
---|---|
73 av_log(avctx, AV_LOG_ERROR, | 73 av_log(avctx, AV_LOG_ERROR, |
74 "Render token doesn't look as expected.\n"); | 74 "Render token doesn't look as expected.\n"); |
75 return -1; // make sure that this is a render packet | 75 return -1; // make sure that this is a render packet |
76 } | 76 } |
77 | 77 |
78 render->picture_structure = s->picture_structure; | |
79 render->flags = s->first_field ? 0 : XVMC_SECOND_FIELD; | |
80 | |
81 if (render->filled_mv_blocks_num) { | 78 if (render->filled_mv_blocks_num) { |
82 av_log(avctx, AV_LOG_ERROR, | 79 av_log(avctx, AV_LOG_ERROR, |
83 "Rendering surface contains %i unprocessed blocks.\n", | 80 "Rendering surface contains %i unprocessed blocks.\n", |
84 render->filled_mv_blocks_num); | 81 render->filled_mv_blocks_num); |
85 return -1; | 82 return -1; |
95 av_log(avctx, AV_LOG_ERROR, | 92 av_log(avctx, AV_LOG_ERROR, |
96 "Rendering surface doesn't provide enough block structures to work with.\n"); | 93 "Rendering surface doesn't provide enough block structures to work with.\n"); |
97 return -1; | 94 return -1; |
98 } | 95 } |
99 | 96 |
97 render->picture_structure = s->picture_structure; | |
98 render->flags = s->first_field ? 0 : XVMC_SECOND_FIELD; | |
100 render->p_future_surface = NULL; | 99 render->p_future_surface = NULL; |
101 render->p_past_surface = NULL; | 100 render->p_past_surface = NULL; |
102 | 101 |
103 switch(s->pict_type) { | 102 switch(s->pict_type) { |
104 case FF_I_TYPE: | 103 case FF_I_TYPE: |