diff options
author | Rodger Combs <rodger.combs@gmail.com> | 2016-10-27 01:10:47 -0500 |
---|---|---|
committer | Rodger Combs <rodger.combs@gmail.com> | 2016-11-02 01:16:26 -0500 |
commit | 1a958f4eb0984fada564a5648d211b408ebb8c3d (patch) | |
tree | 78aceffc16f53ff2aff18768718843f730c23de1 /libavformat/matroskaenc.c | |
parent | be28ce210d5674603838e67509fc597f30c1bb1c (diff) | |
download | ffmpeg-1a958f4eb0984fada564a5648d211b408ebb8c3d.tar.gz |
lavf/matroskaenc: don't try to modify the header when live-streaming
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 56174fff9a..78540fb384 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -1783,7 +1783,7 @@ static int mkv_write_header(AVFormatContext *s) put_ebml_void(pb, 11); // assumes double-precision float to be written } } - if (s->pb->seekable) + if (s->pb->seekable && !mkv->is_live) put_ebml_void(s->pb, avio_tell(pb)); else end_ebml_master_crc32(s->pb, &mkv->info_bc, mkv, mkv->info); @@ -2274,7 +2274,7 @@ static int mkv_write_trailer(AVFormatContext *s) return ret; } - if (pb->seekable) { + if (pb->seekable && !mkv->is_live) { if (mkv->cues->num_entries) { if (mkv->reserve_cues_space) { int64_t cues_end; |