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_bktr.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_bktr.c')
-rw-r--r-- | libavformat/grab_bktr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/grab_bktr.c b/libavformat/grab_bktr.c index 8c02db4034..3c63256674 100644 --- a/libavformat/grab_bktr.c +++ b/libavformat/grab_bktr.c @@ -229,7 +229,7 @@ static int grab_read_packet(AVFormatContext *s1, AVPacket *pkt) bktr_getframe(s->per_frame); - pkt->pts = av_gettime() & ((1LL << 48) - 1); + pkt->pts = av_gettime(); memcpy(pkt->data, video_buf, video_buf_size); return video_buf_size; @@ -260,7 +260,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 use */ + av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in use */ s->width = width; s->height = height; |