Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2014/04/15 20:42:46... | ... |
@@ -628,7 +628,7 @@ static int mpegts_write_header(AVFormatContext *s) |
628 | 628 |
ts->sdt.write_packet = section_write_packet; |
629 | 629 |
ts->sdt.opaque = s; |
630 | 630 |
|
631 |
- pids = av_malloc(s->nb_streams * sizeof(*pids)); |
|
631 |
+ pids = av_malloc_array(s->nb_streams, sizeof(*pids)); |
|
632 | 632 |
if (!pids) |
633 | 633 |
return AVERROR(ENOMEM); |
634 | 634 |
|