Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-08 18:17:40 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-04-08 18:17:40 +0400
commit33c9bb943b671db988d1ebf0aa22df2856f842ce (patch)
treefcfe952cc702faaa461f0ddd1060f056b2859d8b /libavcodec/avpacket.c
parente4c180c05ac9aed33c16ee6e89581a9f2f7b890f (diff)
avcodec/avpacket: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avpacket.c')
-rw-r--r--libavcodec/avpacket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index 00f741af59..93efcec061 100644
--- a/libavcodec/avpacket.c
+++ b/libavcodec/avpacket.c
@@ -394,7 +394,7 @@ int av_packet_split_side_data(AVPacket *pkt){
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)
return AVERROR(ENOMEM);