On Sat, Aug 18, 2012 at 10:57:13PM +0600, Mashiat Sarker Shakkhar wrote:
> ---
> libavcodec/vc1dec.c | 18 +++++++++++-------
> 1 files changed, 11 insertions(+), 7 deletions(-)
>
> diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
> index 22ad325..3e73a1c 100644
> --- a/libavcodec/vc1dec.c
> +++ b/libavcodec/vc1dec.c
> @@ -1229,7 +1229,7 @@ static inline void vc1_pred_mv(VC1Context *v, int n,
> int dmv_x, int dmv_y,
> int px, py;
> int sum;
> int mixedmv_pic, num_samefield = 0, num_oppfield = 0;
> - int opposit, a_f, b_f, c_f;
> + int opposite, a_f, b_f, c_f;
> int16_t field_predA[2];
> int16_t field_predB[2];
> int16_t field_predC[2];
> @@ -1337,13 +1337,17 @@ static inline void vc1_pred_mv(VC1Context *v, int n,
> int dmv_x, int dmv_y,
> }
>
> if (v->field_mode) {
> - if (num_samefield <= num_oppfield)
> - opposit = 1 - pred_flag;
> - else
> - opposit = pred_flag;
> + if (!v->numref)
> + opposite = 1 - v->reffield;
> + else {
> + if (num_samefield <= num_oppfield)
> + opposite = 1 - pred_flag;
> + else
> + opposite = pred_flag;
> + }
> } else
> - opposit = 0;
> - if (opposit) {
> + opposite = 0;
> + if (opposite) {
> if (a_valid && !a_f)
> scale_field_mv(v, field_predA, 1, dir);
> if (b_valid && !b_f)
> --
maybe OK but one shouldn't mix rather unrelated variable renaming and code
changes
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel