mirror of https://git.videolan.org/git/ffmpeg.git
lavf/matroskaenc: don't try to modify the header when live-streaming
This commit is contained in:
parent
be28ce210d
commit
1a958f4eb0
|
@ -1783,7 +1783,7 @@ static int mkv_write_header(AVFormatContext *s)
|
||||||
put_ebml_void(pb, 11); // assumes double-precision float to be written
|
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));
|
put_ebml_void(s->pb, avio_tell(pb));
|
||||||
else
|
else
|
||||||
end_ebml_master_crc32(s->pb, &mkv->info_bc, mkv, mkv->info);
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pb->seekable) {
|
if (pb->seekable && !mkv->is_live) {
|
||||||
if (mkv->cues->num_entries) {
|
if (mkv->cues->num_entries) {
|
||||||
if (mkv->reserve_cues_space) {
|
if (mkv->reserve_cues_space) {
|
||||||
int64_t cues_end;
|
int64_t cues_end;
|
||||||
|
|
Loading…
Reference in New Issue