MythTV master
mythavbufferref.cpp
Go to the documentation of this file.
1#include "mythavbufferref.h"
2
4
5AVBufferRef* MythAVBufferRef::ref(const AVBufferRef* buf)
6{
7 if (buf == nullptr)
8 {
9 return nullptr;
10 }
11 AVBufferRef* reference = av_buffer_ref(buf);
12 if (reference == nullptr)
13 {
14 LOG(VB_GENERAL, LOG_ERR, "av_buffer_ref() failed to allocate memory.");
15 }
16 return reference;
17}
static AVBufferRef * ref(const AVBufferRef *buf)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Definition: mythlogging.h:39