OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02f12de
)
pafdec: fix wrong palette index check.
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 14 Aug 2012 23:57:45 +0000
(
01:57
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 14 Aug 2012 23:57:45 +0000
(
01:57
+0200)
Fixes Ticket1641
Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/paf.c
patch
|
blob
|
history
diff --git
a/libavcodec/paf.c
b/libavcodec/paf.c
index
1c3e8b8
..
388e2a0
100644
(file)
--- a/
libavcodec/paf.c
+++ b/
libavcodec/paf.c
@@
-276,7
+276,7
@@
static int paf_vid_decode(AVCodecContext *avctx, void *data,
index = bytestream2_get_byte(&c->gb);
count = bytestream2_get_byte(&c->gb) + 1;
- if (index + count >
AVPALETTE_SIZE
)
+ if (index + count >
256
)
return AVERROR_INVALIDDATA;
if (bytestream2_get_bytes_left(&c->gb) < 3 * AVPALETTE_SIZE)
return AVERROR_INVALIDDATA;