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/segafilm.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/segafilm.c')
-rw-r--r-- | libavformat/segafilm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c index fc54f3095c..7ddedf930e 100644 --- a/libavformat/segafilm.c +++ b/libavformat/segafilm.c @@ -173,6 +173,9 @@ static int film_read_header(AVFormatContext *s, film->sample_count = BE_32(&scratch[12]); film->sample_table = av_malloc(film->sample_count * sizeof(film_sample_t)); + for(i=0; i<s->nb_streams; i++) + av_set_pts_info(s->streams[i], 33, 1, film->base_clock); + audio_frame_counter = 0; for (i = 0; i < film->sample_count; i++) { /* load the next sample record and transfer it to an internal struct */ @@ -200,10 +203,6 @@ static int film_read_header(AVFormatContext *s, film->current_sample = 0; - /* set the pts reference to match the tick rate of the file */ - s->pts_num = 1; - s->pts_den = film->base_clock; - return 0; } |