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 correct deallocation code on failure of pids array allocation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4
Michael Niedermayer
10 years ago
parent
5f8300afc6
commit
12b59e57f3
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
libavformat/mpegtsenc.c
+ 2
- 2
libavformat/mpegtsenc.c
View File
@@ -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 */
Write
Preview
Loading…
Cancel
Save