[SCM] libav/experimental: Set dts in tta demuxer
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:05:24 UTC 2013
The following commit has been merged in the experimental branch:
commit 160ab30fcccea5697b2c065e7647c370e321cca6
Author: David Conrad <lessen42 at gmail.com>
Date: Sat Aug 11 22:45:40 2007 +0000
Set dts in tta demuxer
Originally committed as revision 10077 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/tta.c b/libavformat/tta.c
index 5799e5d..4b9be6c 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)
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list