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/smoothstreamingenc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/smoothstreamingenc.c') diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index d955b3437e..b9f1dcba46 100644 --- a/libavformat/smoothstreamingenc.c +++ b/libavformat/smoothstreamingenc.c @@ -342,6 +342,7 @@ static int ism_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; ctx->pb = avio_alloc_context(os->iobuf, sizeof(os->iobuf), AVIO_FLAG_WRITE, os, NULL, ism_write, ism_seek); if (!ctx->pb) { -- cgit v1.2.3