1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-04-14 00:58:38 +02:00

avformat/mpegtsenc: Use correct deallocation code on failure of pids array allocation

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-08-07 22:40:24 +02:00
parent 5f8300afc6
commit 12b59e57f3

View File

@ -623,8 +623,8 @@ static int mpegts_write_header(AVFormatContext *s)
pids = av_malloc_array(s->nb_streams, sizeof(*pids)); pids = av_malloc_array(s->nb_streams, sizeof(*pids));
if (!pids) { if (!pids) {
av_free(service); ret = AVERROR(ENOMEM);
return AVERROR(ENOMEM); goto fail;
} }
/* assign pids to each stream */ /* assign pids to each stream */