mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avformat/segment: Fix header_filename handling
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
23261e6001
commit
21b459e4bb
@ -701,7 +701,9 @@ static int seg_write_header(AVFormatContext *s)
|
||||
goto fail;
|
||||
|
||||
if (seg->write_header_trailer) {
|
||||
if ((ret = s->io_open(s, &oc->pb, oc->filename, AVIO_FLAG_WRITE, NULL)) < 0) {
|
||||
if ((ret = s->io_open(s, &oc->pb,
|
||||
seg->header_filename ? seg->header_filename : oc->filename,
|
||||
AVIO_FLAG_WRITE, NULL)) < 0) {
|
||||
av_log(s, AV_LOG_ERROR, "Failed to open segment '%s'\n", oc->filename);
|
||||
goto fail;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user