summaryrefslogtreecommitdiff
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-10-06 11:41:33 +0300
committerMartin Storsjö <martin@martin.st>2014-10-06 23:30:52 +0300
commit28816050e47b6dba430a52e429d21a864cffda8e (patch)
tree901f3de2c6bb7e06d2dd12b84576b71f9362ccff /libavformat/hlsenc.c
parentb76249443864c88ffb2d41ab8d1de7432e985dc7 (diff)
lavf: Set the stream time base hint properly for chained muxers
This avoids warnings about using the codec time base as time base hint. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c1
1 files changed, 1 insertions, 0 deletions
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;