diff options
author | Marton Balint <cus@passwd.hu> | 2016-03-15 19:19:20 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2016-03-26 23:26:27 +0100 |
commit | 8ff0f6ae8253d394f096b39d69b66e5247ed1066 (patch) | |
tree | 147c426c0290b7e9bc9b342e717d71d4a8c21fcc /libavformat/segment.c | |
parent | 5a19506088c3f52e1cc156883274ff61d45137b5 (diff) | |
download | ffmpeg-8ff0f6ae8253d394f096b39d69b66e5247ed1066.tar.gz |
avformat/segment: set format options for all segments
Fixes ticket #5318.
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r-- | libavformat/segment.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c index 960a438a4d..9ed1987709 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -256,7 +256,11 @@ static int segment_start(AVFormatContext *s, int write_header) av_opt_set(oc->priv_data, "mpegts_flags", "+resend_headers", 0); if (write_header) { - if ((err = avformat_write_header(oc, NULL)) < 0) + AVDictionary *options = NULL; + av_dict_copy(&options, seg->format_options, 0); + err = avformat_write_header(oc, &options); + av_dict_free(&options); + if (err < 0) return err; } |