comparison mpegts.c @ 775:c5077fdab490 libavformat

AVPacket.pos
author michael
date Thu, 26 May 2005 20:17:12 +0000
parents 5f07cc45fd50
children a6c035e7f429
comparison
equal deleted inserted replaced
774:820863425158 775:c5077fdab490
1232 int pcr_l, next_pcr_l; 1232 int pcr_l, next_pcr_l;
1233 uint8_t pcr_buf[12]; 1233 uint8_t pcr_buf[12];
1234 1234
1235 if (av_new_packet(pkt, TS_PACKET_SIZE) < 0) 1235 if (av_new_packet(pkt, TS_PACKET_SIZE) < 0)
1236 return -ENOMEM; 1236 return -ENOMEM;
1237 pkt->pos= url_ftell(&s->pb);
1237 ret = read_packet(&s->pb, pkt->data, ts->raw_packet_size); 1238 ret = read_packet(&s->pb, pkt->data, ts->raw_packet_size);
1238 if (ret < 0) { 1239 if (ret < 0) {
1239 av_free_packet(pkt); 1240 av_free_packet(pkt);
1240 return ret; 1241 return ret;
1241 } 1242 }