Lines Matching defs:pkt
188 static int smush_read_packet(AVFormatContext *ctx, AVPacket *pkt)
208 if ((ret = av_get_packet(pb, pkt, size)) < 0)
211 pkt->stream_index = smush->video_stream_index;
215 if ((ret = av_get_packet(pb, pkt, size)) < 0)
218 pkt->stream_index = smush->video_stream_index;
219 pkt->duration = 1;
225 if (av_get_packet(pb, pkt, size) < 13)
228 pkt->stream_index = smush->audio_stream_index;
229 pkt->flags |= AV_PKT_FLAG_KEY;
230 pkt->duration = AV_RB32(pkt->data);
231 if (pkt->duration == 0xFFFFFFFFu)
232 pkt->duration = AV_RB32(pkt->data + 8);