提交 e2ce1639 编写于 作者: M Martin Storsjö

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: NMartin Storsjö <martin@martin.st>
上级 4895aa65
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册