comparison psxstr.c @ 775:c5077fdab490 libavformat

AVPacket.pos
author michael
date Thu, 26 May 2005 20:17:12 +0000
parents 095009fc2f35
children feca73904e67
comparison
equal deleted inserted replaced
774:820863425158 775:c5077fdab490
281 pkt = &str->tmp_pkt; 281 pkt = &str->tmp_pkt;
282 if (current_sector == 0) { 282 if (current_sector == 0) {
283 if (av_new_packet(pkt, frame_size)) 283 if (av_new_packet(pkt, frame_size))
284 return AVERROR_IO; 284 return AVERROR_IO;
285 285
286 pkt->pos= url_ftell(pb) - RAW_CD_SECTOR_SIZE;
286 pkt->stream_index = 287 pkt->stream_index =
287 str->channels[channel].video_stream_index; 288 str->channels[channel].video_stream_index;
288 // pkt->pts = str->pts; 289 // pkt->pts = str->pts;
289 290
290 /* if there is no audio, adjust the pts after every video 291 /* if there is no audio, adjust the pts after every video