comparison amr.c @ 775:c5077fdab490 libavformat

AVPacket.pos
author michael
date Thu, 26 May 2005 20:17:12 +0000
parents 909942162fa3
children feca73904e67
comparison
equal deleted inserted replaced
774:820863425158 775:c5077fdab490
152 if (av_new_packet(pkt, size+1)) 152 if (av_new_packet(pkt, size+1))
153 { 153 {
154 return AVERROR_IO; 154 return AVERROR_IO;
155 } 155 }
156 pkt->stream_index = 0; 156 pkt->stream_index = 0;
157 157 pkt->pos= url_ftell(&s->pb);
158 pkt->data[0]=toc; 158 pkt->data[0]=toc;
159 159
160 read = get_buffer(&s->pb, pkt->data+1, size); 160 read = get_buffer(&s->pb, pkt->data+1, size);
161 161
162 if (read != size) 162 if (read != size)
187 { 187 {
188 return AVERROR_IO; 188 return AVERROR_IO;
189 } 189 }
190 190
191 pkt->stream_index = 0; 191 pkt->stream_index = 0;
192 pkt->pos= url_ftell(&s->pb);
192 pkt->data[0]=toc; 193 pkt->data[0]=toc;
193 194
194 read = get_buffer(&s->pb, pkt->data+1, size-1); 195 read = get_buffer(&s->pb, pkt->data+1, size-1);
195 196
196 if (read != (size-1)) 197 if (read != (size-1))