You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
mpegts: Support running the write_trailer function without an AVIOContext
If opening and closing dynamic buffers as AVIOContext, we may not have any AVIOContext available when wanting to close and deallocate the muxer. Allow calling write_trailer despite this. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@@ -1192,7 +1192,8 @@ static int mpegts_write_end(AVFormatContext *s)
|
||||
MpegTSService *service;
|
||||
int i;
|
||||
|
||||
mpegts_write_flush(s);
|
||||
if (s->pb)
|
||||
mpegts_write_flush(s);
|
||||
|
||||
for (i = 0; i < s->nb_streams; i++) {
|
||||
AVStream *st = s->streams[i];
|
||||
|
Reference in New Issue
Block a user