From 28816050e47b6dba430a52e429d21a864cffda8e Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 6 Oct 2014 11:41:33 +0300 Subject: lavf: Set the stream time base hint properly for chained muxers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids warnings about using the codec time base as time base hint. Signed-off-by: Martin Storsjö --- libavformat/hlsenc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/hlsenc.c') diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 5d18d13a36..ad53df5734 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -80,6 +80,7 @@ static int hls_mux_init(AVFormatContext *s) return AVERROR(ENOMEM); avcodec_copy_context(st->codec, s->streams[i]->codec); st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio; + st->time_base = s->streams[i]->time_base; } return 0; -- cgit v1.2.3