diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-05-21 20:43:21 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-05-21 20:43:21 +0000 |
commit | 9ee91c2f53dbc7cc61e65805d57e0a805b5752d7 (patch) | |
tree | 8b9419fb7d80a440bacf3d2783b3599648ee1c3d /libavformat/matroska.c | |
parent | e8733cc4d9b866643009342ec6839795a059fe53 (diff) | |
download | ffmpeg-9ee91c2f53dbc7cc61e65805d57e0a805b5752d7.tar.gz |
move time_base (pts_num/pts_den) from AVFormatContext -> AVStream
Originally committed as revision 3148 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroska.c')
-rw-r--r-- | libavformat/matroska.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/matroska.c b/libavformat/matroska.c index fee09f41d0..edd5342816 100644 --- a/libavformat/matroska.c +++ b/libavformat/matroska.c @@ -2152,8 +2152,6 @@ matroska_read_header (AVFormatContext *s, MatroskaTrack *track; AVStream *st; - av_set_pts_info(s, 24, 1, 1000); /* 24 bit pts in ms */ - for (i = 0; i < matroska->num_tracks; i++) { track = matroska->tracks[i]; @@ -2257,6 +2255,7 @@ matroska_read_header (AVFormatContext *s, st = av_new_stream(s, track->stream_index); if (st == NULL) return AVERROR_NOMEM; + av_set_pts_info(st, 24, 1, 1000); /* 24 bit pts in ms */ st->codec.codec_id = codec_id; |