summaryrefslogtreecommitdiff
path: root/libavcodec/vc1.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2006-07-21 03:58:48 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2006-07-21 03:58:48 +0000
commitb53921aabdd344086c3e45d3206107d30b00faa1 (patch)
treeeb69eaeecd38c42b01c09219254f9ce41a2d5bcd /libavcodec/vc1.c
parent53be4c90e381ba988630f70a31054a69fa7c5794 (diff)
Set correctly quantizer and transform mode when parsing frame header.
Originally committed as revision 5806 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r--libavcodec/vc1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 60d62ac6cb..aedbd773c4 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -1329,7 +1329,7 @@ static int vc1_parse_frame_header(VC1Context *v, GetBitContext* gb)
if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
v->pq = pquant_table[0][pqindex];
else
- v->pq = pquant_table[v->quantizer_mode-1][pqindex];
+ v->pq = pquant_table[1][pqindex];
v->pquantizer = 1;
if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
@@ -1435,6 +1435,9 @@ static int vc1_parse_frame_header(VC1Context *v, GetBitContext* gb)
{
v->ttfrm = ttfrm_to_tt[get_bits(gb, 2)];
}
+ } else {
+ v->ttmbf = 1;
+ v->ttfrm = TT_8X8;
}
break;
case B_TYPE: