projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53be4c9
)
Set correctly quantizer and transform mode when parsing frame header.
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Fri, 21 Jul 2006 03:58:48 +0000
(
03:58
+0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Fri, 21 Jul 2006 03:58:48 +0000
(
03:58
+0000)
Originally committed as revision 5806 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vc1.c
patch
|
blob
|
history
diff --git
a/libavcodec/vc1.c
b/libavcodec/vc1.c
index
60d62ac
..
aedbd77
100644
(file)
--- 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: