Mercurial > libavformat.hg
diff 4xm.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/4xm.c Thu May 20 16:00:22 2004 +0000 +++ b/4xm.c Fri May 21 20:43:21 2004 +0000 @@ -164,6 +164,7 @@ st = av_new_stream(s, 0); if (!st) return AVERROR_NOMEM; + av_set_pts_info(st, 33, 1, 90000); fourxm->video_stream_index = st->index; @@ -202,6 +203,9 @@ if (!st) return AVERROR_NOMEM; + /* set the pts reference (1 pts = 1/90000) */ + av_set_pts_info(st, 33, 1, 90000); + fourxm->tracks[current_track].stream_index = st->index; st->codec.codec_type = CODEC_TYPE_AUDIO; @@ -232,10 +236,6 @@ fourxm->video_pts = -fourxm->video_pts_inc; /* first frame will push to 0 */ fourxm->audio_pts = 0; - /* set the pts reference (1 pts = 1/90000) */ - s->pts_num = 1; - s->pts_den = 90000; - return 0; }
