mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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>
This commit is contained in:
parent
6b54477072
commit
99e0007046
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user