Commit f0135cef authored by kostya's avatar kostya

Set correctly quantizer and transform mode when parsing frame header.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5806 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3e302b7d
...@@ -1329,7 +1329,7 @@ static int vc1_parse_frame_header(VC1Context *v, GetBitContext* gb) ...@@ -1329,7 +1329,7 @@ static int vc1_parse_frame_header(VC1Context *v, GetBitContext* gb)
if (v->quantizer_mode == QUANT_FRAME_IMPLICIT) if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
v->pq = pquant_table[0][pqindex]; v->pq = pquant_table[0][pqindex];
else else
v->pq = pquant_table[v->quantizer_mode-1][pqindex]; v->pq = pquant_table[1][pqindex];
v->pquantizer = 1; v->pquantizer = 1;
if (v->quantizer_mode == QUANT_FRAME_IMPLICIT) if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
...@@ -1435,6 +1435,9 @@ static int vc1_parse_frame_header(VC1Context *v, GetBitContext* gb) ...@@ -1435,6 +1435,9 @@ static int vc1_parse_frame_header(VC1Context *v, GetBitContext* gb)
{ {
v->ttfrm = ttfrm_to_tt[get_bits(gb, 2)]; v->ttfrm = ttfrm_to_tt[get_bits(gb, 2)];
} }
} else {
v->ttmbf = 1;
v->ttfrm = TT_8X8;
} }
break; break;
case B_TYPE: case B_TYPE:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment