diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-19 17:45:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-19 17:58:47 +0200 |
commit | 240fd8c96f59ebe9dcfc4152a1086cd3f63400c0 (patch) | |
tree | 5a90ef389ecbde1ede107d703f19494100132e1f /libavcodec | |
parent | d5ec8ba7f2cb83a166da196c377398b7954c5d6c (diff) | |
download | ffmpeg-240fd8c96f59ebe9dcfc4152a1086cd3f63400c0.tar.gz |
avcodec/avpacket/av_packet_split_side_data: ensure that side data padding is initialized
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/avpacket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index bee159d01d..d9cfb38e24 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -401,7 +401,7 @@ int av_packet_split_side_data(AVPacket *pkt){ for (i=0; ; i++){ size= AV_RB32(p); av_assert0(size<=INT_MAX && p - pkt->data >= size); - pkt->side_data[i].data = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); + pkt->side_data[i].data = av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE); pkt->side_data[i].size = size; pkt->side_data[i].type = p[4]&127; if (!pkt->side_data[i].data) |