Browse Source

Set dts in tta demuxer

Originally committed as revision 10077 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
David Conrad 18 years ago
parent
commit
160ab30fcc
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      libavformat/tta.c

+ 5
- 3
libavformat/tta.c View File

@@ -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)


Loading…
Cancel
Save