diff options
author | David Conrad <lessen42@gmail.com> | 2007-08-11 22:45:40 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2007-08-11 22:45:40 +0000 |
commit | 160ab30fcccea5697b2c065e7647c370e321cca6 (patch) | |
tree | 52f2e6a0f200b74cc628d30259b4498f61ecea31 /libavformat/tta.c | |
parent | ddb8ebe7a19ea6178f9cf8857a55657d8f317559 (diff) | |
download | ffmpeg-160ab30fcccea5697b2c065e7647c370e321cca6.tar.gz |
Set dts in tta demuxer
Originally committed as revision 10077 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/tta.c')
-rw-r--r-- | libavformat/tta.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavformat/tta.c b/libavformat/tta.c index 5799e5d727..4b9be6cf30 100644 --- a/libavformat/tta.c +++ b/libavformat/tta.c @@ -109,15 +109,17 @@ static int tta_read_packet(AVFormatContext *s, AVPacket *pkt) { TTAContext *c = s->priv_data; AVStream *st = s->streams[0]; - int size; + int size, ret; // FIXME! if (c->currentframe > c->totalframes) return -1; - size = st->index_entries[c->currentframe++].size; + size = st->index_entries[c->currentframe].size; - return av_get_packet(&s->pb, pkt, size); + ret = av_get_packet(&s->pb, pkt, size); + pkt->dts = st->index_entries[c->currentframe++].timestamp; + return ret; } static int tta_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) |