Lines Matching defs:pkt
574 static int ea_read_packet(AVFormatContext *s, AVPacket *pkt)
624 av_packet_unref(pkt);
631 ret = av_get_packet(pb, pkt, chunk_size);
634 pkt->stream_index = ea->audio_stream_index;
642 if (pkt->size < 4) {
647 pkt->duration = AV_RB32(pkt->data);
649 pkt->duration = AV_RL32(pkt->data);
652 pkt->duration = ret * 2 / ea->num_channels;
656 pkt->duration = num_samples;
659 pkt->duration = chunk_size / (16 * ea->num_channels) * 28;
662 pkt->duration = chunk_size / (ea->bytes * ea->num_channels);
726 ret = av_append_packet(pb, pkt, chunk_size);
728 ret = av_get_packet(pb, pkt, chunk_size);
736 pkt->stream_index = ea->alpha.stream_index;
738 pkt->stream_index = ea->video.stream_index;
739 pkt->flags |= key;