MythTV
master
mythtv
libs
libmythtv
mythavbufferref.cpp
Go to the documentation of this file.
1
#include "
mythavbufferref.h
"
2
3
#include "
libmythbase/mythlogging.h
"
4
5
AVBufferRef*
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
}
MythAVBufferRef::ref
static AVBufferRef * ref(const AVBufferRef *buf)
Definition:
mythavbufferref.cpp:5
mythavbufferref.h
mythlogging.h
LOG
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Definition:
mythlogging.h:39
Generated on Sun Oct 19 2025 03:16:32 for MythTV by
1.9.4