summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2019-10-27 18:10:33 +0100
committerJames Zern <jzern@google.com>2019-11-05 23:14:24 -0800
commit99e000704690b2b954c18ca585cc56dfd99e9c16 (patch)
tree0374ae63d88e43d4d235401f4432916c20bf967a /libavcodec
parent6b544770729e1a4e91db3825c81c3c7a2254012f (diff)
downloadffmpeg-streaming-99e000704690b2b954c18ca585cc56dfd99e9c16.zip
ffmpeg-streaming-99e000704690b2b954c18ca585cc56dfd99e9c16.tar.gz
avcodec/libvpxdec: make sure BlockAdditional side data size >= 8
Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: James Zern <jzern@google.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libvpxdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c
index 164dbda..cc91140 100644
--- a/libavcodec/libvpxdec.c
+++ b/libavcodec/libvpxdec.c
@@ -191,7 +191,7 @@ static int vpx_decode(AVCodecContext *avctx,
side_data = av_packet_get_side_data(avpkt,
AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL,
&side_data_size);
- if (side_data_size > 1) {
+ if (side_data_size >= 8) {
const uint64_t additional_id = AV_RB64(side_data);
side_data += 8;
side_data_size -= 8;
OpenPOWER on IntegriCloud