• Home
  • Raw
  • Download

Lines Matching refs:pkt1

428     MyAVPacketList pkt1;  in packet_queue_put_private()  local
433 if (av_fifo_space(q->pkt_list) < sizeof(pkt1)) { in packet_queue_put_private()
434 if (av_fifo_grow(q->pkt_list, sizeof(pkt1)) < 0) in packet_queue_put_private()
438 pkt1.pkt = pkt; in packet_queue_put_private()
439 pkt1.serial = q->serial; in packet_queue_put_private()
441 av_fifo_generic_write(q->pkt_list, &pkt1, sizeof(pkt1), NULL); in packet_queue_put_private()
443 q->size += pkt1.pkt->size + sizeof(pkt1); in packet_queue_put_private()
444 q->duration += pkt1.pkt->duration; in packet_queue_put_private()
452 AVPacket *pkt1; in packet_queue_put() local
455 pkt1 = av_packet_alloc(); in packet_queue_put()
456 if (!pkt1) { in packet_queue_put()
460 av_packet_move_ref(pkt1, pkt); in packet_queue_put()
463 ret = packet_queue_put_private(q, pkt1); in packet_queue_put()
467 av_packet_free(&pkt1); in packet_queue_put()
501 MyAVPacketList pkt1; in packet_queue_flush() local
504 while (av_fifo_size(q->pkt_list) >= sizeof(pkt1)) { in packet_queue_flush()
505 av_fifo_generic_read(q->pkt_list, &pkt1, sizeof(pkt1), NULL); in packet_queue_flush()
506 av_packet_free(&pkt1.pkt); in packet_queue_flush()
545 MyAVPacketList pkt1; in packet_queue_get() local
556 if (av_fifo_size(q->pkt_list) >= sizeof(pkt1)) { in packet_queue_get()
557 av_fifo_generic_read(q->pkt_list, &pkt1, sizeof(pkt1), NULL); in packet_queue_get()
559 q->size -= pkt1.pkt->size + sizeof(pkt1); in packet_queue_get()
560 q->duration -= pkt1.pkt->duration; in packet_queue_get()
561 av_packet_move_ref(pkt, pkt1.pkt); in packet_queue_get()
563 *serial = pkt1.serial; in packet_queue_get()
564 av_packet_free(&pkt1.pkt); in packet_queue_get()