Mercurial > libavformat.hg
diff segafilm.c @ 462:b69898ffc92a libavformat
move time_base (pts_num/pts_den) from AVFormatContext -> AVStream
author | michael |
---|---|
date | Fri, 21 May 2004 20:43:21 +0000 |
parents | c152849ee643 |
children | 0fdc96c2f2fe |
line wrap: on
line diff
--- a/segafilm.c Thu May 20 16:00:22 2004 +0000 +++ b/segafilm.c Fri May 21 20:43:21 2004 +0000 @@ -173,6 +173,9 @@ 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 @@ 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; }