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:
58df8be
)
mpegvideo_parser: fix buffer access beyond end
author
Wolfram Gloger
<wmglo@dent.med.uni-muenchen.de>
Wed, 5 Dec 2012 18:26:12 +0000
(19:26 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 5 Dec 2012 19:29:18 +0000
(20:29 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegvideo_parser.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegvideo_parser.c
b/libavcodec/mpegvideo_parser.c
index
c112a94
..
35a9160
100644
(file)
--- a/
libavcodec/mpegvideo_parser.c
+++ b/
libavcodec/mpegvideo_parser.c
@@
-56,6
+56,7
@@
static void mpegvideo_extract_headers(AVCodecParserContext *s,
case PICTURE_START_CODE:
if (bytes_left >= 2) {
s->pict_type = (buf[1] >> 3) & 7;
+ if (bytes_left >= 4)
vbv_delay = ((buf[1] & 0x07) << 13) | (buf[2] << 5) | (buf[3] >> 3);
}
break;