diff options
author | James Almer <jamrial@gmail.com> | 2016-10-02 12:57:39 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-10-04 21:19:58 -0300 |
commit | b33369b6128a7c99fa7fa4686712ce8b8b5fef05 (patch) | |
tree | 38b9e872e033031bf3a1db84bf55a32743463a14 /libavformat | |
parent | 3cc9d6d3824f24df677437b891b66bf84eabc45b (diff) |
avformat/matroskaenc: don't reserve space for stream duration tags if the output is not seekable
The durations are never written in that situation.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index c6a8dceb79..def8610c58 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -1377,7 +1377,7 @@ static int mkv_write_tags(AVFormatContext *s) if (ret < 0) return ret; } - if (!mkv->is_live) { + if (s->pb->seekable && !mkv->is_live) { for (i = 0; i < s->nb_streams; i++) { ebml_master tag_target; ebml_master tag; |