OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ccbc67
)
pqindex=0 is forbidden
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Wed, 16 Jan 2008 17:07:34 +0000
(17:07 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Wed, 16 Jan 2008 17:07:34 +0000
(17:07 +0000)
Originally committed as revision 11540 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vc1.c
patch
|
blob
|
history
diff --git
a/libavcodec/vc1.c
b/libavcodec/vc1.c
index
46987c8
..
86ca7b9
100644
(file)
--- a/
libavcodec/vc1.c
+++ b/
libavcodec/vc1.c
@@
-1065,6
+1065,7
@@
static int vc1_parse_frame_header(VC1Context *v, GetBitContext* gb)
/* Quantizer stuff */
pqindex = get_bits(gb, 5);
+ if(!pqindex) return -1;
if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
v->pq = ff_vc1_pquant_table[0][pqindex];
else
@@
-1301,6
+1302,7
@@
static int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
}
}
pqindex = get_bits(gb, 5);
+ if(!pqindex) return -1;
v->pqindex = pqindex;
if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
v->pq = ff_vc1_pquant_table[0][pqindex];