Lines Matching defs:packet
510 // Call FFmpeg to fetch one packet.
512 ScopedAVPacket packet(new AVPacket());
513 if (av_read_frame(av_format_context_, packet.get()) < 0) {
515 packet.reset();
516 return packet.Pass();
519 int stream_index = static_cast<int>(packet->stream_index);
525 // Ignore unknown packet.
526 LOG(INFO) << "Unknown packet.";
527 packet.reset();
529 return packet.Pass();
532 void DecodeAudio(ScopedAVPacket packet) {
536 // Make a shallow copy of packet so we can slide packet.data as frames are
537 // decoded from the packet; otherwise av_free_packet() will corrupt memory.
538 AVPacket packet_temp = *packet.get();
555 // Initialize the base time to the first packet in the file.
618 void DecodeVideo(ScopedAVPacket packet) {
624 av_video_context()->reordered_opaque = packet->pts;
626 av_video_context(), avframe, &got_picture, packet.get()) >= 0)
664 ScopedAVPacket packet = DemuxOnePacket(&audio_packet);
665 if (!packet) {
671 DecodeAudio(packet.Pass());
673 DecodeVideo(packet.Pass());
756 VLOG(1) << "Got packet events from transport, size: " << packet_events.size();
789 VLOG(0) << "Packet map size: " << packet_events.size();