Lines Matching defs:pkt
57 static int amr_write_packet(AVFormatContext *s, AVPacket *pkt)
59 put_buffer(s->pb, pkt->data, pkt->size);
118 AVPacket *pkt)
149 if ( (size==0) || av_new_packet(pkt, size))
154 pkt->stream_index = 0;
155 pkt->pos= url_ftell(s->pb);
156 pkt->data[0]=toc;
157 pkt->duration= enc->codec_id == CODEC_ID_AMR_NB ? 160 : 320;
158 read = get_buffer(s->pb, pkt->data+1, size-1);
162 av_free_packet(pkt);