mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-02 06:23:23 +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:
parent
5f8300afc6
commit
12b59e57f3
@ -623,8 +623,8 @@ static int mpegts_write_header(AVFormatContext *s)
|
||||
|
||||
pids = av_malloc_array(s->nb_streams, sizeof(*pids));
|
||||
if (!pids) {
|
||||
av_free(service);
|
||||
return AVERROR(ENOMEM);
|
||||
ret = AVERROR(ENOMEM);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* assign pids to each stream */
|
||||
|
Loading…
Reference in New Issue
Block a user