Lines Matching defs:new_pkt
604 AVPacket new_pkt = *pkt;
606 &new_pkt.data, &new_pkt.size,
609 if(a == 0 && new_pkt.data != pkt->data && new_pkt.destruct) {
610 uint8_t *t = av_malloc(new_pkt.size + FF_INPUT_BUFFER_PADDING_SIZE); //the new should be a subset of the old so cannot overflow
612 memcpy(t, new_pkt.data, new_pkt.size);
613 memset(t + new_pkt.size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
614 new_pkt.data = t;
615 new_pkt.buf = NULL;
622 new_pkt.buf = av_buffer_create(new_pkt.data, new_pkt.size,
624 if (!new_pkt.buf)
634 *pkt = new_pkt;