Mercurial > libavformat.hg
diff grab.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 | e5174af0f52f |
children | 0fdc96c2f2fe |
line wrap: on
line diff
--- a/grab.c Thu May 20 16:00:22 2004 +0000 +++ b/grab.c Fri May 21 20:43:21 2004 +0000 @@ -79,6 +79,7 @@ st = av_new_stream(s1, 0); if (!st) return -ENOMEM; + av_set_pts_info(st, 48, 1, 1000000); /* 48 bits pts in us */ s->width = width; s->height = height; @@ -263,8 +264,6 @@ st->codec.height = height; st->codec.frame_rate = frame_rate; st->codec.frame_rate_base = frame_rate_base; - - av_set_pts_info(s1, 48, 1, 1000000); /* 48 bits pts in us */ return 0; fail: