Lines Matching refs:packet
22 bool FFmpegH264ToAnnexBBitstreamConverter::ConvertPacket(AVPacket* packet) {
25 if (packet == NULL || !packet->data)
44 packet->data, packet->size, avc_config.get());
47 return false; // Invalid input packet.
49 // Allocate new packet for the output.
55 // the pointer of the old packet with a new one, we will initially copy the
56 // metadata from old packet to new bigger packet.
57 av_packet_copy_props(&dest_packet, packet);
63 packet->data, packet->size,
72 // At the end we must destroy the old packet.
73 av_free_packet(packet);
74 *packet = dest_packet; // Finally, replace the values in the input packet.