int av_dup_packet(AVPacket *pkt) { AVPacket tmp_pkt; if (!pkt->buf && pkt->data) { tmp_pkt = *pkt; return copy_packet_data(pkt, &tmp_pkt, 1); } return 0; }
int av_dup_packet(AVPacket *pkt) { AVPacket tmp_pkt; if (pkt->destruct == NULL && pkt->data) { tmp_pkt = *pkt; return copy_packet_data(pkt, &tmp_pkt); } return 0; }
FF_ENABLE_DEPRECATION_WARNINGS #endif int av_dup_packet(AVPacket *pkt) { AVPacket tmp_pkt; if (!pkt->buf && pkt->data) { tmp_pkt = *pkt; return copy_packet_data(pkt, &tmp_pkt, 1); } return 0; }
int av_dup_packet(AVPacket *pkt) { AVPacket tmp_pkt; if (!pkt->buf && pkt->data #if FF_API_DESTRUCT_PACKET && !pkt->destruct #endif ) { tmp_pkt = *pkt; return copy_packet_data(pkt, &tmp_pkt, 1); } return 0; }
int av_dup_packet(AVPacket *pkt) { AVPacket tmp_pkt; FF_DISABLE_DEPRECATION_WARNINGS if (!pkt->buf && pkt->data #if FF_API_DESTRUCT_PACKET && !pkt->destruct #endif ) { FF_ENABLE_DEPRECATION_WARNINGS tmp_pkt = *pkt; return copy_packet_data(pkt, &tmp_pkt, 1); } return 0; }
int av_copy_packet(AVPacket *dst, const AVPacket *src) { *dst = *src; return copy_packet_data(dst, src, 0); }