mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avformat/nutdec: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7c6b0436b6
commit
4a10811617
@ -248,7 +248,7 @@ static int decode_main_header(NUTContext *nut)
|
||||
}
|
||||
|
||||
GET_V(nut->time_base_count, tmp > 0 && tmp < INT_MAX / sizeof(AVRational));
|
||||
nut->time_base = av_malloc(nut->time_base_count * sizeof(AVRational));
|
||||
nut->time_base = av_malloc_array(nut->time_base_count, sizeof(AVRational));
|
||||
if (!nut->time_base)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user