Commit 33c9bb94 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/avpacket: use av_malloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e4c180c0
...@@ -394,7 +394,7 @@ int av_packet_split_side_data(AVPacket *pkt){ ...@@ -394,7 +394,7 @@ int av_packet_split_side_data(AVPacket *pkt){
p-= size+5; p-= size+5;
} }
pkt->side_data = av_malloc(i * sizeof(*pkt->side_data)); pkt->side_data = av_malloc_array(i, sizeof(*pkt->side_data));
if (!pkt->side_data) if (!pkt->side_data)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment