mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/avpacket: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e4c180c05a
commit
33c9bb943b
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue