Lines Matching defs:pkt
166 static int fsb_read_packet(AVFormatContext *s, AVPacket *pkt)
180 ret = av_new_packet(pkt, par->block_align);
185 pkt->data[ch * 8 + i * 2 + 0] = avio_r8(s->pb);
186 pkt->data[ch * 8 + i * 2 + 1] = avio_r8(s->pb);
191 ret = av_get_packet(s->pb, pkt, par->block_align);
194 if (par->codec_id == AV_CODEC_ID_XMA2 && pkt->size >= 1)
195 pkt->duration = (pkt->data[0] >> 2) * 512;
197 pkt->pos = pos;
198 pkt->stream_index = 0;