Mercurial > libavcodec.hg
changeset 8152:cddc3677e7dc libavcodec
421l: postproc flag may be present in any VC-1 AP frame type
author | kostya |
---|---|
date | Sun, 16 Nov 2008 06:47:44 +0000 |
parents | e2c068cb210a |
children | ef9f95604644 |
files | vc1.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/vc1.c Sun Nov 16 01:00:25 2008 +0000 +++ b/vc1.c Sun Nov 16 06:47:44 2008 +0000 @@ -1394,6 +1394,8 @@ else v->halfpq = 0; if (v->quantizer_mode == QUANT_FRAME_EXPLICIT) v->pquantizer = get_bits1(gb); + if(v->postprocflag) + v->postproc = get_bits1(gb); if(v->s.pict_type == FF_I_TYPE || v->s.pict_type == FF_P_TYPE) v->use_ic = 0; @@ -1416,8 +1418,6 @@ } break; case FF_P_TYPE: - if(v->postprocflag) - v->postproc = get_bits1(gb); if (v->extended_mv) v->mvrange = get_unary(gb, 0, 3); else v->mvrange = 0; v->k_x = v->mvrange + 9 + (v->mvrange >> 1); //k_x can be 9 10 12 13 @@ -1507,8 +1507,6 @@ } break; case FF_B_TYPE: - if(v->postprocflag) - v->postproc = get_bits1(gb); if (v->extended_mv) v->mvrange = get_unary(gb, 0, 3); else v->mvrange = 0; v->k_x = v->mvrange + 9 + (v->mvrange >> 1); //k_x can be 9 10 12 13