Revision a2704c97 libavformat/idroqdec.c

View differences:

libavformat/idroqdec.c
141 141

  
142 142
        case RoQ_QUAD_CODEBOOK:
143 143
            /* packet needs to contain both this codebook and next VQ chunk */
144
            codebook_offset = url_ftell(pb) - RoQ_CHUNK_PREAMBLE_SIZE;
144
            codebook_offset = avio_tell(pb) - RoQ_CHUNK_PREAMBLE_SIZE;
145 145
            codebook_size = chunk_size;
146 146
            avio_seek(pb, codebook_size, SEEK_CUR);
147 147
            if (avio_read(pb, preamble, RoQ_CHUNK_PREAMBLE_SIZE) !=
......
197 197
                roq->audio_frame_count += (chunk_size / roq->audio_channels);
198 198
            }
199 199

  
200
            pkt->pos= url_ftell(pb);
200
            pkt->pos= avio_tell(pb);
201 201
            ret = avio_read(pb, pkt->data + RoQ_CHUNK_PREAMBLE_SIZE,
202 202
                chunk_size);
203 203
            if (ret != chunk_size)

Also available in: Unified diff