Audacity 3.2.0
AVPacketWrapper.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 AVPacketWrapper.cpp
6
7 Dmitry Vedenko
8
9**********************************************************************/
10
11#include "AVPacketWrapper.h"
12
13#include "FFmpegFunctions.h"
14
16 : mFFmpeg(ffmpeg)
17{
18}
19
21{
22 return mAVPacket;
23}
24
26{
27 return mAVPacket;
28}
29
31{
32 if (mAVPacket != nullptr)
33 {
34 if (!mUseAVFree)
35 {
37 }
38 else
39 {
42 }
43 }
44}
const FFmpegFunctions & mFFmpeg
virtual ~AVPacketWrapper()
AVPacket * GetWrappedValue() noexcept
AVPacket * mAVPacket
AVPacketWrapper(const AVPacketWrapper &)=delete
void(* av_packet_unref)(AVPacket *pkt)
void(* av_packet_free)(AVPacket **pkt)
void(* av_free)(void *ptr)