diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-07 16:42:12 +0400 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-03-07 18:01:27 +0400 |
commit | 16ac9edc2f0e9b1e5eaaeb39290d93b4501541b1 (patch) | |
tree | 58ca866164c5c827f79b3ae72cb60486984523a9 /libavformat/hls.c | |
parent | 164628e2f7e41947f821fcf0342b97c10b87e6b1 (diff) |
hls: fix timebase
Fixes Ticket1733
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit a12a618aa9c6d84ec3c01695fb5aec9796453a6d)
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r-- | libavformat/hls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c index 00c3cf01fb..065a759157 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -536,11 +536,13 @@ static int hls_read_header(AVFormatContext *s) /* Create new AVStreams for each stream in this variant */ for (j = 0; j < v->ctx->nb_streams; j++) { AVStream *st = avformat_new_stream(s, NULL); + AVStream *ist = v->ctx->streams[j]; if (!st) { ret = AVERROR(ENOMEM); goto fail; } st->id = i; + avpriv_set_pts_info(st, ist->pts_wrap_bits, ist->time_base.num, ist->time_base.den); avcodec_copy_context(st->codec, v->ctx->streams[j]->codec); if (v->bandwidth) av_dict_set(&st->metadata, "variant_bitrate", bitrate_str, |