aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/segment.c
diff options
context:
space:
mode:
authorSteven Liu <lingjiujianke@gmail.com>2016-09-08 21:56:44 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2016-09-09 02:45:28 +0200
commit1da00be009aa74400042bf470b9a5ffbd82a1c5e (patch)
treeb53cddb47a79283c9be79b03b64bf6e534e8218b /libavformat/segment.c
parentfff4df7fba4fdabff875bb40b63f219601cc5ab1 (diff)
downloadffmpeg-1da00be009aa74400042bf470b9a5ffbd82a1c5e.tar.gz
avformat/segment: give a warning message for remove initial_offset option
ffmpeg have a generic solution working with all muxer named output_ts_offset, output_ts_offset will instead of initial_offset Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r--libavformat/segment.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c
index bf29ef8aa0..33a5cf0c9f 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -651,6 +651,11 @@ static int seg_init(AVFormatContext *s)
seg->individual_header_trailer = 0;
}
+ if (seg->initial_offset > 0) {
+ av_log(s, AV_LOG_WARNING, "NOTE: the option initial_offset is deprecated,"
+ "you can use output_ts_offset instead of it\n");
+ }
+
if (!!seg->time_str + !!seg->times_str + !!seg->frames_str > 1) {
av_log(s, AV_LOG_ERROR,
"segment_time, segment_times, and segment_frames options "