diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-07 13:42:12 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-03-07 14:56:57 +0100 |
commit | a8fc0bb608305983476214b1df229d71944cd2a7 (patch) | |
tree | 7c89af55834e50f8b36233cd1e1901651af1a200 | |
parent | 7c8beec48ce7fa7380e8aab700c7d5f2b579a58e (diff) | |
download | ffmpeg-a8fc0bb608305983476214b1df229d71944cd2a7.tar.gz |
hls: fix timebase
Fixes Ticket1733
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit a12a618aa9c6d84ec3c01695fb5aec9796453a6d)
-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 f515dfb7f1..4a67c2db69 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -560,12 +560,14 @@ 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; } ff_program_add_stream_index(s, i, stream_offset + j); 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, |