Lines Matching defs:pkt
82 static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
135 av_get_packet(pb, pkt, len-2);
136 pkt->pts = frame;
137 pkt->stream_index = st->index;
138 return pkt->size;
145 av_get_packet(pb, pkt, len-4);
147 av_get_packet(pb, pkt, len);
149 pkt->stream_index = st->index;
150 return pkt->size;
168 av_new_packet(pkt, len-2);
169 get_buffer(pb, pkt->data, 4);
170 if (AV_RB32(pkt->data) == 0xffd8ffd9 ||
171 AV_RB32(pkt->data) == 0xffd9ffd8) {
174 pkt->size -= 4;
175 get_buffer(pb, pkt->data, pkt->size);
177 get_buffer(pb, pkt->data + 4, pkt->size - 4);
179 pkt->stream_index = st->index;
180 return pkt->size;