[FFmpeg-devel] [PATCH 1/2] avformat/segment: give a warning message for remove initial_offset option

Steven Liu lingjiujianke at gmail.com
Thu Sep 8 17:01:20 EEST 2016


ffmpeg have a generic solution working with all muxer named
output_ts_offset, output_ts_offset will instead of initial_offset

Signed-off-by: LiuQi <liuqi at gosun.com>
---
 libavformat/segment.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavformat/segment.c b/libavformat/segment.c
index bf29ef8..23e1abf 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 will be
deprecated soon,"
+               "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 "
-- 
2.7.4 (Apple Git-66)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-segment-give-a-warning-message-for-remove-i.patch
Type: application/octet-stream
Size: 1154 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160908/8b3a09b2/attachment.obj>


More information about the ffmpeg-devel mailing list