Mercurial > libavformat.hg
diff flic.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/flic.c Thu May 20 16:00:22 2004 +0000 +++ b/flic.c Fri May 21 20:43:21 2004 +0000 @@ -100,9 +100,7 @@ st->codec.extradata = av_malloc(FLIC_HEADER_SIZE); memcpy(st->codec.extradata, header, FLIC_HEADER_SIZE); - /* set the pts reference (1 pts = 1/90000) */ - s->pts_num = 1; - s->pts_den = 90000; + av_set_pts_info(st, 33, 1, 90000); /* Time to figure out the framerate: If there is a FLIC chunk magic * number at offset 0x10, assume this is from the Bullfrog game,