Revision 160ab30f libavformat/tta.c

View differences:

libavformat/tta.c
109 109
{
110 110
    TTAContext *c = s->priv_data;
111 111
    AVStream *st = s->streams[0];
112
    int size;
112
    int size, ret;
113 113

  
114 114
    // FIXME!
115 115
    if (c->currentframe > c->totalframes)
116 116
        return -1;
117 117

  
118
    size = st->index_entries[c->currentframe++].size;
118
    size = st->index_entries[c->currentframe].size;
119 119

  
120
    return av_get_packet(&s->pb, pkt, size);
120
    ret = av_get_packet(&s->pb, pkt, size);
121
    pkt->dts = st->index_entries[c->currentframe++].timestamp;
122
    return ret;
121 123
}
122 124

  
123 125
static int tta_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)

Also available in: Unified diff