Lines Matching defs:pkt
92 avs_read_video_packet(AVFormatContext * s, AVPacket * pkt,
99 ret = av_new_packet(pkt, size + palette_size);
104 pkt->data[0] = 0x00;
105 pkt->data[1] = 0x03;
106 pkt->data[2] = palette_size & 0xFF;
107 pkt->data[3] = (palette_size >> 8) & 0xFF;
108 memcpy(pkt->data + 4, palette, palette_size - 4);
111 pkt->data[palette_size + 0] = sub_type;
112 pkt->data[palette_size + 1] = type;
113 pkt->data[palette_size + 2] = size & 0xFF;
114 pkt->data[palette_size + 3] = (size >> 8) & 0xFF;
115 ret = avio_read(s->pb, pkt->data + palette_size + 4, size - 4) + 4;
120 pkt->size = ret + palette_size;
121 pkt->stream_index = avs->st_video->index;
123 pkt->flags |= AV_PKT_FLAG_KEY;
128 static int avs_read_audio_packet(AVFormatContext * s, AVPacket * pkt)
135 ret = ff_voc_get_packet(s, pkt, avs->st_audio, avs->remaining_audio_size);
144 av_packet_unref(pkt);
148 pkt->stream_index = avs->st_audio->index;
149 pkt->flags |= AV_PKT_FLAG_KEY;
154 static int avs_read_packet(AVFormatContext * s, AVPacket * pkt)
164 if (avs_read_audio_packet(s, pkt) > 0)
208 return avs_read_video_packet(s, pkt, type, sub_type, size,
219 size = avs_read_audio_packet(s, pkt);