You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user