Commit 88a7360d authored by conrad's avatar conrad

Set dts in tta demuxer

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10077 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5897ebf7
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment