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/hdsenc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/hdsenc.c') diff --git a/libavformat/hdsenc.c b/libavformat/hdsenc.c index 882f157d91..53fef339b8 100644 --- a/libavformat/hdsenc.c +++ b/libavformat/hdsenc.c @@ -398,6 +398,7 @@ static int hds_write_header(AVFormatContext *s) } 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; } if (c->streams[c->nb_streams].ctx) c->nb_streams++; -- cgit v1.2.3