diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2004-03-23 05:35:10 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2004-03-23 05:35:10 +0000 |
commit | 8066e59fa4f1a476262c6b3096f079ea5b582cb6 (patch) | |
tree | a8a6ba3cb75dd8958b7ed25d1c128db152a91524 /libavformat/dv1394.c | |
parent | 039e78891ec7a69841b3797c6ac5e51b102b10fe (diff) | |
download | ffmpeg-8066e59fa4f1a476262c6b3096f079ea5b582cb6.tar.gz |
* enabling seek in raw DV files
* generic DV demuxer now sets correct pts for every packet
Originally committed as revision 2919 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/dv1394.c')
-rw-r--r-- | libavformat/dv1394.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libavformat/dv1394.c b/libavformat/dv1394.c index 94c62f65b6..cf64a250cb 100644 --- a/libavformat/dv1394.c +++ b/libavformat/dv1394.c @@ -43,8 +43,6 @@ struct dv1394_data { int avail; /* Number of frames available for reading */ int done; /* Number of completed frames */ - int64_t pts; /* Current timestamp */ - DVDemuxContext* dv_demux; /* Generic DV muxing/demuxing context */ }; @@ -121,8 +119,6 @@ static int dv1394_read_header(AVFormatContext * context, AVFormatParameters * ap goto failed; } - av_set_pts_info(context, 48, 1, 1000000); - if (dv1394_start(dv) < 0) goto failed; @@ -140,7 +136,7 @@ static int dv1394_read_packet(AVFormatContext *context, AVPacket *pkt) size = dv_get_packet(dv->dv_demux, pkt); if (size > 0) - goto out; + return size; if (!dv->avail) { struct dv1394_status s; @@ -209,10 +205,7 @@ restart_poll: DV1394_PAL_FRAME_SIZE); dv->index = (dv->index + 1) % DV1394_RING_FRAMES; dv->done++; dv->avail--; - dv->pts = av_gettime() & ((1LL << 48) - 1); -out: - pkt->pts = dv->pts; return size; } |