diff options
author | Luca Abeni <lucabe72@email.it> | 2006-02-01 11:31:33 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-02-01 11:31:33 +0000 |
commit | 0a7b514f13baddda8641ab365aa2f9c218839c47 (patch) | |
tree | fbfc6d5fd2691800880de6b3884d617e4679490c /libavformat/grab.c | |
parent | b5bba45905c074d9c8a9388589fda3f48cb08437 (diff) | |
download | ffmpeg-0a7b514f13baddda8641ab365aa2f9c218839c47.tar.gz |
video4linux2 input support
patch by Luca Abeni, lucabe72 $$at$$ email $$dot$$ it
Originally committed as revision 4916 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/grab.c')
-rw-r--r-- | libavformat/grab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/grab.c b/libavformat/grab.c index 218695d825..15d8dbbbc8 100644 --- a/libavformat/grab.c +++ b/libavformat/grab.c @@ -82,7 +82,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) st = av_new_stream(s1, 0); if (!st) return -ENOMEM; - av_set_pts_info(st, 48, 1, 1000000); /* 48 bits pts in us */ + av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ s->width = width; s->height = height; @@ -331,7 +331,7 @@ static int grab_read_packet(AVFormatContext *s1, AVPacket *pkt) if (av_new_packet(pkt, s->frame_size) < 0) return AVERROR_IO; - pkt->pts = curtime & ((1LL << 48) - 1); + pkt->pts = curtime; /* read one frame */ if (s->aiw_enabled) { |