This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avformat/mpegtsenc: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer
11 years ago
parent
083b6e739b
commit
337f74868c
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavformat/mpegtsenc.c
+ 1
- 1
libavformat/mpegtsenc.c
View File
@@ -628,7 +628,7 @@ static int mpegts_write_header(AVFormatContext *s)
ts->sdt.write_packet = section_write_packet;
ts->sdt.opaque = s;
pids = av_malloc
(s->nb_streams *
sizeof(*pids));
pids = av_malloc
_array(s->nb_streams,
sizeof(*pids));
if (!pids)
return AVERROR(ENOMEM);
Write
Preview
Loading…
Cancel
Save