Lines Matching defs:pkt
206 int ff_h264_handle_aggregated_packet(AVFormatContext *ctx, PayloadContext *data, AVPacket *pkt,
255 if ((ret = av_new_packet(pkt, total_length)) < 0)
257 dst = pkt->data;
264 int ff_h264_handle_frag_packet(AVPacket *pkt, const uint8_t *buf, int len,
273 if ((ret = av_new_packet(pkt, tot_len)) < 0)
276 memcpy(pkt->data + pos, start_sequence, sizeof(start_sequence));
278 memcpy(pkt->data + pos, nal_header, nal_header_len);
281 memcpy(pkt->data + pos, buf, len);
285 static int h264_handle_packet_fu_a(AVFormatContext *ctx, PayloadContext *data, AVPacket *pkt,
308 return ff_h264_handle_frag_packet(pkt, buf, len, start_bit, &nal, 1);
313 AVStream *st, AVPacket *pkt, uint32_t *timestamp,
335 if ((result = av_new_packet(pkt, len + sizeof(start_sequence))) < 0)
337 memcpy(pkt->data, start_sequence, sizeof(start_sequence));
338 memcpy(pkt->data + sizeof(start_sequence), buf, len);
346 result = ff_h264_handle_aggregated_packet(ctx, data, pkt, buf, len, 0,
359 result = h264_handle_packet_fu_a(ctx, data, pkt, buf, len,
371 pkt->stream_index = st->index;