On Mon, 15 Jun 2020, Zivkovic, Milos wrote:
Hello,
I appreciate the comments.
Missing docs for the new option.
Does this refer to .texi files? I'll update the docs.
Yes.
Avoid these if possible. Yes, this is C++ code but only because the
decklink
API requires it. Also it gives me a compile error, and I am not familiar
enough
with C++ to figure out what is going on
It makes everything much easier (just like using std::atomic for ref
counting does).
It also doesn't change the needed version of C++ since std::atomic is
available in C++11 and above.
However, that error message is concerning and I'd like to fix it. Which
compiler is it?
GCC 7.5.0, full compiler log is attached.
You only use this to avoid calling ->Release() right? If that is the case,
then
I'd avoid this as well, I am not sure about the compiler support of such
templating.
Yes, it's used to avoid manually releasing COM pointers which can become
quite a hassle especially if multiple COM objects are involved.
Error handling is simplified as well since there's no need to worry which
COM object(s) should be released.
As far as compiler support goes, this is the most basic C++ template that's
supported by basically every C++ compiler in the last 20+ years.
I'm willing to remove it if you still feel strongly that it's unnecessary.
Yes please.
This interface is only available from DeckLink SDK 10.10 or so, but you
have not
bumped the version requirement in configure.
Wasn't sure which files should be edited for this.
I'll get the exact SDK version that introduces it and bump it in configure.
Is the sorting really needed? Aren't they supposed to be sorted in the
VANC?
Well, they should be, but it's not guaranteed so this is just a safety net.
If it was guaranteed there would be no need for PSC fields.
Maybe avoid the error message and increase ctx->dropped like other similar
code
does it.
Will do.
Mixed code and declaration.
I'll move that block below the declaration.
Lose the error message for ENOMEM.
I was just following what the other code that adds streams does.
AV_OPT_TYPE_BOOL
I'll change that asap.
Thanks,
Milos
Thanks,
Marton
g++ -I. -I./ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DZLIB_CONST -std=c11
-fomit-frame-pointer -pthread -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/fribidi
-I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/freetype2
-D_REENTRANT -DOPENSSL_LOAD_CONF -pthread -I/usr/include/librsvg-2.0
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libdrm -I/usr/include/libpng12 -DOPENSSL_LOAD_CONF
-I/usr//usr/include -I/usr//usr/include/srt -DOPENSSL_LOAD_CONF
-I/usr/include/alsa -g -Wdeclaration-after-statement -Wall
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings
-Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast
-Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch
-Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable
-Wno-bool-operation -Wno-char-subscripts -O3 -fno-math-errno -fno-signed-zeros
-fno-tree-vectorize -Werror=format-security
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto
-Wno-maybe-uninitialized -D_REENTRANT -I/usr/include/SDL2
-D__STDC_CONSTANT_MACROS -std=c++11 -c -o libavdevice/decklink_dec.o
libavdevice/decklink_dec.cpp
cc1plus: warning: command line option â-Wdeclaration-after-statementâ is
valid for C/ObjC but not for C++
cc1plus: warning: command line option â-Wmissing-prototypesâ is valid for
C/ObjC but not for C++
cc1plus: warning: command line option â-Wno-pointer-to-int-castâ is valid
for C/ObjC but not for C++
cc1plus: warning: command line option â-Wstrict-prototypesâ is valid for
C/ObjC but not for C++
cc1plus: warning: command line option â-Wno-pointer-signâ is valid for
C/ObjC but not for C++
cc1plus: warning: â-Werror=â argument
â-Werror=implicit-function-declarationâ is not valid for C++
cc1plus: warning: â-Werror=â argument â-Werror=missing-prototypesâ is
not valid for C++
cc1plus: warning: command line option â-std=c11â is valid for C/ObjC but
not for C++
In file included from /usr/include/c++/7/ext/new_allocator.h:33:0,
from
/usr/include/c++/7/x86_64-suse-linux/bits/c++allocator.h:33,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/vector:61,
from libavdevice/decklink_dec.cpp:25:
./new:1:1: error: expected unqualified-id before â[â token
[PACKET]
^
In file included from /usr/include/c++/7/bits/allocator.h:46:0,
from /usr/include/c++/7/vector:61,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/x86_64-suse-linux/bits/c++allocator.h:48:41: error:
ânew_allocatorâ in namespace â__gnu_cxxâ does not name a template type
using __allocator_base = __gnu_cxx::new_allocator<_Tp>;
^~~~~~~~~~~~~
In file included from /usr/include/c++/7/vector:61:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/allocator.h:108:45: error: expected template-name
before â<â token
class allocator: public __allocator_base<_Tp>
^
/usr/include/c++/7/bits/allocator.h:108:45: error: expected â{â before
â<â token
/usr/include/c++/7/bits/allocator.h:173:25: error: explicit instantiation of
âclass std::allocator<char>â before definition of template
extern template class allocator<char>;
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/allocator.h:174:25: error: explicit instantiation of
âclass std::allocator<wchar_t>â before definition of template
extern template class allocator<wchar_t>;
^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/stl_construct.h:59:0,
from /usr/include/c++/7/vector:62,
from libavdevice/decklink_dec.cpp:25:
./new:1:1: error: expected unqualified-id before â[â token
[PACKET]
^
In file included from /usr/include/c++/7/bits/stl_construct.h:61:0,
from /usr/include/c++/7/vector:62,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/ext/alloc_traits.h:52:26: error: expected template-name
before â<â token
: std::allocator_traits<_Alloc>
^
/usr/include/c++/7/ext/alloc_traits.h:52:26: error: expected â{â before
â<â token
In file included from /usr/include/c++/7/vector:64:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/stl_vector.h: In member function âvoid
std::vector<_Tp, _Alloc>::_M_move_assign(std::vector<_Tp, _Alloc>&&,
std::true_type)â:
/usr/include/c++/7/bits/stl_vector.h:1539:7: error: â__alloc_on_moveâ is
not a member of âstdâ
std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator());
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:1539:7: note: suggested alternative:
â__alloc_neqâ
std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator());
^~~~~~~~~~~~~~~
__alloc_neq
In file included from /usr/include/c++/7/vector:65:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/stl_bvector.h: In member function âstd::vector<bool,
_Alloc>& std::vector<bool, _Alloc>::operator=(const std::vector<bool,
_Alloc>&)â:
/usr/include/c++/7/bits/stl_bvector.h:692:13: error: â__alloc_on_copyâ is
not a member of âstdâ
std::__alloc_on_copy(_M_get_Bit_allocator(),
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:692:13: note: suggested alternative:
â__alloc_neqâ
std::__alloc_on_copy(_M_get_Bit_allocator(),
^~~~~~~~~~~~~~~
__alloc_neq
/usr/include/c++/7/bits/stl_bvector.h:697:11: error: â__alloc_on_copyâ is
not a member of âstdâ
std::__alloc_on_copy(_M_get_Bit_allocator(),
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:697:11: note: suggested alternative:
â__alloc_neqâ
std::__alloc_on_copy(_M_get_Bit_allocator(),
^~~~~~~~~~~~~~~
__alloc_neq
/usr/include/c++/7/bits/stl_bvector.h: In member function âstd::vector<bool,
_Alloc>& std::vector<bool, _Alloc>::operator=(std::vector<bool, _Alloc>&&)â:
/usr/include/c++/7/bits/stl_bvector.h:725:9: error: â__alloc_on_moveâ is
not a member of âstdâ
std::__alloc_on_move(_M_get_Bit_allocator(),
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_bvector.h:725:9: note: suggested alternative:
â__alloc_neqâ
std::__alloc_on_move(_M_get_Bit_allocator(),
^~~~~~~~~~~~~~~
__alloc_neq
In file included from /usr/include/c++/7/vector:69:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/vector.tcc: In member function âstd::vector<_Tp,
_Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp,
_Alloc>&)â:
/usr/include/c++/7/bits/vector.tcc:199:13: error: â__alloc_on_copyâ is not
a member of âstdâ
std::__alloc_on_copy(_M_get_Tp_allocator(),
^~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:199:13: note: suggested alternative:
â__alloc_neqâ
std::__alloc_on_copy(_M_get_Tp_allocator(),
^~~~~~~~~~~~~~~
__alloc_neq
In file included from /usr/include/c++/7/bits/stl_algo.h:62:0,
from /usr/include/c++/7/algorithm:62,
from libavdevice/decklink_dec.cpp:26:
/usr/include/c++/7/bits/stl_tempbuf.h: In function âstd::pair<_Tp*, long int>
std::get_temporary_buffer(std::ptrdiff_t)â:
/usr/include/c++/7/bits/stl_tempbuf.h:95:13: error: ânothrowâ is not a
member of âstdâ
std::nothrow));
^~~~~~~
/usr/include/c++/7/bits/stl_tempbuf.h: In function âvoid
std::return_temporary_buffer(_Tp*)â:
/usr/include/c++/7/bits/stl_tempbuf.h:113:35: error: ânothrowâ is not a
member of âstdâ
{ ::operator delete(__p, std::nothrow); }
^~~~~~~
In file included from /usr/include/c++/7/vector:64:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/stl_vector.h: In instantiation of âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char> >â:
/usr/include/c++/7/bits/stl_vector.h:216:11: required from âclass
std::vector<unsigned char>â
libavdevice/decklink_dec.cpp:645:30: required from here
/usr/include/c++/7/bits/stl_vector.h:77:21: error: invalid use of incomplete
type âstruct __gnu_cxx::__alloc_traits<std::allocator<unsigned char> >â
rebind<_Tp>::other _Tp_alloc_type;
^~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/stl_construct.h:61:0,
from /usr/include/c++/7/vector:62,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/ext/alloc_traits.h:50:10: note: declaration of âstruct
__gnu_cxx::__alloc_traits<std::allocator<unsigned char> >â
struct __alloc_traits
^~~~~~~~~~~~~~
In file included from /usr/include/c++/7/vector:64:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/stl_vector.h:79:9: error: invalid use of incomplete
type âstruct __gnu_cxx::__alloc_traits<std::allocator<unsigned char> >â
pointer;
^~~~~~~
In file included from /usr/include/c++/7/bits/stl_construct.h:61:0,
from /usr/include/c++/7/vector:62,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/ext/alloc_traits.h:50:10: note: declaration of âstruct
__gnu_cxx::__alloc_traits<std::allocator<unsigned char> >â
struct __alloc_traits
^~~~~~~~~~~~~~
In file included from /usr/include/c++/7/vector:64:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/stl_vector.h: In instantiation of âclass
std::vector<unsigned char>â:
libavdevice/decklink_dec.cpp:645:30: required from here
/usr/include/c++/7/bits/stl_vector.h:247:20: error: no members matching
âstd::vector<unsigned char>::_Base {aka std::_Vector_base<unsigned char,
std::allocator<unsigned char> >}::_M_allocateâ in âstd::vector<unsigned
char>::_Base {aka struct std::_Vector_base<unsigned char,
std::allocator<unsigned char> >}â
using _Base::_M_allocate;
^~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:248:20: error: no members matching
âstd::vector<unsigned char>::_Base {aka std::_Vector_base<unsigned char,
std::allocator<unsigned char> >}::_M_deallocateâ in âstd::vector<unsigned
char>::_Base {aka struct std::_Vector_base<unsigned char,
std::allocator<unsigned char> >}â
using _Base::_M_deallocate;
^~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:250:20: error: no members matching
âstd::vector<unsigned char>::_Base {aka std::_Vector_base<unsigned char,
std::allocator<unsigned char> >}::_M_get_Tp_allocatorâ in
âstd::vector<unsigned char>::_Base {aka struct std::_Vector_base<unsigned
char, std::allocator<unsigned char> >}â
using _Base::_M_get_Tp_allocator;
^~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h: In instantiation of âstruct
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >â:
/usr/include/c++/7/bits/stl_vector.h:216:11: required from âclass
std::vector<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >â
libavdevice/decklink_dec.cpp:649:52: required from here
/usr/include/c++/7/bits/stl_vector.h:77:21: error: invalid use of incomplete
type âstruct
__gnu_cxx::__alloc_traits<std::allocator<std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >â
rebind<_Tp>::other _Tp_alloc_type;
^~~~~~~~~~~~~~
In file included from /usr/include/c++/7/bits/stl_construct.h:61:0,
from /usr/include/c++/7/vector:62,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/ext/alloc_traits.h:50:10: note: declaration of âstruct
__gnu_cxx::__alloc_traits<std::allocator<std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >â
struct __alloc_traits
^~~~~~~~~~~~~~
In file included from /usr/include/c++/7/vector:64:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/stl_vector.h:79:9: error: invalid use of incomplete
type âstruct
__gnu_cxx::__alloc_traits<std::allocator<std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >â
pointer;
^~~~~~~
In file included from /usr/include/c++/7/bits/stl_construct.h:61:0,
from /usr/include/c++/7/vector:62,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/ext/alloc_traits.h:50:10: note: declaration of âstruct
__gnu_cxx::__alloc_traits<std::allocator<std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >â
struct __alloc_traits
^~~~~~~~~~~~~~
In file included from /usr/include/c++/7/vector:64:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/stl_vector.h: In instantiation of âclass
std::vector<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >â:
libavdevice/decklink_dec.cpp:649:52: required from here
/usr/include/c++/7/bits/stl_vector.h:247:20: error: no members matching
âstd::vector<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >::_Base {aka
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >}::_M_allocateâ in
âstd::vector<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >::_Base {aka struct
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >}â
using _Base::_M_allocate;
^~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:248:20: error: no members matching
âstd::vector<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >::_Base {aka
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >}::_M_deallocateâ in
âstd::vector<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >::_Base {aka struct
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >}â
using _Base::_M_deallocate;
^~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:250:20: error: no members matching
âstd::vector<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >::_Base {aka
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >}::_M_get_Tp_allocatorâ in
âstd::vector<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >::_Base {aka struct
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >}â
using _Base::_M_get_Tp_allocator;
^~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h: In constructor âstd::vector<_Tp,
_Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&)
[with _Tp = std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>; _Alloc =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >; std::vector<_Tp,
_Alloc>::size_type = long unsigned int; std::vector<_Tp,
_Alloc>::allocator_type =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >]â:
/usr/include/c++/7/bits/stl_vector.h:283:57: error: invalid use of incomplete
type âstd::vector<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >::allocator_type {aka class
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >}â
vector(size_type __n, const allocator_type& __a = allocator_type())
^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/vector:61:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/allocator.h:108:11: note: declaration of
âstd::vector<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >::allocator_type {aka class
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >}â
class allocator: public __allocator_base<_Tp>
^~~~~~~~~
libavdevice/decklink_dec.cpp:649:56: note: when instantiating default
argument for call to std::vector<_Tp, _Alloc>::vector(std::vector<_Tp,
_Alloc>::size_type, const allocator_type&) [with _Tp =
std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>; _Alloc =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >; std::vector<_Tp,
_Alloc>::size_type = long unsigned int; std::vector<_Tp,
_Alloc>::allocator_type =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >]
std::vector<std::vector<KLVPacket>> klv_packets(256);
^
libavdevice/decklink_dec.cpp: In function âvoid handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)â:
libavdevice/decklink_dec.cpp:682:32: error: no match for âoperator[]â
(operand types are âstd::vector<std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >â and
âuint8_t {aka unsigned char}â)
klv_packets[mid].push_back(std::move(packet));
^
libavdevice/decklink_dec.cpp:695:37: error: no match for âoperator[]â
(operand types are âstd::vector<std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >â and
âsize_t {aka long unsigned int}â)
auto& list = klv_packets[i];
^
libavdevice/decklink_dec.cpp:700:63: warning: format â%dâ expects argument
of type âintâ, but argument 4 has type âsize_t {aka long unsigned int}â
[-Wformat=]
av_log(avctx, AV_LOG_DEBUG, "Joining MID: %d\n", i);
^
libavdevice/decklink_dec.cpp:706:33: error: unable to deduce âauto&&â from
âlistâ
for (auto& packet : list)
^~~~
libavdevice/decklink_dec.cpp:707:21: error: âclass std::vector<unsigned
char>â has no member named âinsertâ
klv.insert(klv.end(), packet.data.begin(), packet.data.end());
^~~~~~
libavdevice/decklink_dec.cpp:707:32: error: âclass std::vector<unsigned
char>â has no member named âendâ
klv.insert(klv.end(), packet.data.begin(), packet.data.end());
^~~
libavdevice/decklink_dec.cpp:640:19: warning: unused variable
âKLV_IN_HANC_SDIDâ [-Wunused-variable]
const uint8_t KLV_IN_HANC_SDID = 0x14;
^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/vector:64:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/stl_vector.h: In instantiation of âstd::vector<_Tp,
_Alloc>::~vector() [with _Tp = std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>; _Alloc =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >]â:
libavdevice/decklink_dec.cpp:649:56: required from here
/usr/include/c++/7/bits/stl_vector.h:434:37: error: âstruct
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >::_Vector_implâ has no
member named â_M_startâ; did you mean â_M_swap_dataâ?
{ std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/stl_vector.h:434:61: error: âstruct
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >::_Vector_implâ has no
member named â_M_finishâ
{ std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:435:28: error: â_M_get_Tp_allocatorâ
was not declared in this scope
_M_get_Tp_allocator()); }
~~~~~~~~~~~~~~~~~~~^~
/usr/include/c++/7/bits/stl_vector.h:435:28: note: suggested alternative:
âget_allocatorâ
_M_get_Tp_allocator()); }
~~~~~~~~~~~~~~~~~~~^~
get_allocator
/usr/include/c++/7/bits/stl_vector.h: In instantiation of âstd::vector<_Tp,
_Alloc>::~vector() [with _Tp = unsigned char; _Alloc = std::allocator<unsigned
char>]â:
libavdevice/decklink_dec.cpp:678:43: required from here
/usr/include/c++/7/bits/stl_vector.h:434:37: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
{ std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/stl_vector.h:434:61: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_finishâ
{ std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:435:28: error: â_M_get_Tp_allocatorâ
was not declared in this scope
_M_get_Tp_allocator()); }
~~~~~~~~~~~~~~~~~~~^~
/usr/include/c++/7/bits/stl_vector.h:435:28: note: suggested alternative:
âget_allocatorâ
_M_get_Tp_allocator()); }
~~~~~~~~~~~~~~~~~~~^~
get_allocator
/usr/include/c++/7/bits/stl_vector.h: In instantiation of âvoid
std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type) [with _Tp
= unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp,
_Alloc>::size_type = long unsigned int]â:
libavdevice/decklink_dec.cpp:679:48: required from here
/usr/include/c++/7/bits/stl_vector.h:694:34: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
_M_erase_at_end(this->_M_impl._M_start + __new_size);
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/stl_vector.h:694:19: error: â_M_erase_at_endâ was
not declared in this scope
_M_erase_at_end(this->_M_impl._M_start + __new_size);
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:694:19: note: suggested alternative:
â_M_default_appendâ
_M_erase_at_end(this->_M_impl._M_start + __new_size);
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_M_default_append
/usr/include/c++/7/bits/stl_vector.h: In instantiation of â_Tp*
std::vector<_Tp, _Alloc>::data() [with _Tp = unsigned char; _Alloc =
std::allocator<unsigned char>]â:
libavdevice/decklink_dec.cpp:680:45: required from here
/usr/include/c++/7/bits/stl_vector.h:921:42: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
{ return _M_data_ptr(this->_M_impl._M_start); }
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
In file included from /usr/include/c++/7/vector:69:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/vector.tcc: In instantiation of âvoid
std::vector<_Tp, _Alloc>::reserve(std::vector<_Tp, _Alloc>::size_type) [with
_Tp = unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp,
_Alloc>::size_type = long unsigned int]â:
libavdevice/decklink_dec.cpp:692:31: required from here
/usr/include/c++/7/bits/vector.tcc:76:32: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/vector.tcc:76:56: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_finishâ
std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:77:23: error: â_M_get_Tp_allocatorâ was
not declared in this scope
_M_get_Tp_allocator());
~~~~~~~~~~~~~~~~~~~^~
/usr/include/c++/7/bits/vector.tcc:77:23: note: suggested alternative:
âget_allocatorâ
_M_get_Tp_allocator());
~~~~~~~~~~~~~~~~~~~^~
get_allocator
/usr/include/c++/7/bits/vector.tcc:78:32: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
_M_deallocate(this->_M_impl._M_start,
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/vector.tcc:79:18: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_end_of_storageâ
this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:80:20: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
- this->_M_impl._M_start);
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/vector.tcc:78:17: error: â_M_deallocateâ was not
declared in this scope
_M_deallocate(this->_M_impl._M_start,
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- this->_M_impl._M_start);
~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:78:17: note: suggested alternative:
âav_realloc_fâ
_M_deallocate(this->_M_impl._M_start,
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
-------------------------
av_realloc_f
this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------
av_realloc_f
- this->_M_impl._M_start);
~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------
av_realloc_f
/usr/include/c++/7/bits/vector.tcc:81:18: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
this->_M_impl._M_start = __tmp;
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/vector.tcc:82:18: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_finishâ
this->_M_impl._M_finish = __tmp + __old_size;
~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:83:18: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_end_of_storageâ
this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:83:52: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n;
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
In file included from /usr/include/c++/7/vector:64:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/stl_vector.h: In instantiation of âstd::vector<_Tp,
_Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp =
std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>; _Alloc =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >; std::vector<_Tp,
_Alloc>::size_type = long unsigned int]â:
libavdevice/decklink_dec.cpp:694:49: required from here
/usr/include/c++/7/bits/stl_vector.h:671:40: error: âconst struct
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >::_Vector_implâ has no
member named â_M_finishâ
{ return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:671:66: error: âconst struct
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >::_Vector_implâ has no
member named â_M_startâ; did you mean â_M_swap_dataâ?
{ return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/stl_vector.h: In instantiation of âstd::vector<_Tp,
_Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = unsigned
char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp,
_Alloc>::size_type = long unsigned int]â:
libavdevice/decklink_dec.cpp:717:36: required from here
/usr/include/c++/7/bits/stl_vector.h:671:40: error: âconst struct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_finishâ
{ return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:671:66: error: âconst struct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
{ return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/stl_vector.h: In instantiation of
âstd::_Vector_base<_Tp, _Alloc>::_Vector_base(std::size_t, const
allocator_type&) [with _Tp = std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>; _Alloc =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >; std::size_t = long unsigned
int; std::_Vector_base<_Tp, _Alloc>::allocator_type =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >]â:
/usr/include/c++/7/bits/stl_vector.h:284:23: required from
âstd::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const
allocator_type&) [with _Tp = std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>; _Alloc =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >; std::vector<_Tp,
_Alloc>::size_type = long unsigned int; std::vector<_Tp,
_Alloc>::allocator_type =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >]â
libavdevice/decklink_dec.cpp:649:56: required from here
/usr/include/c++/7/bits/stl_vector.h:137:20: error: no matching function for
call to âstd::_Vector_base<std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >
>::_Vector_impl::_Vector_impl(const allocator_type&)â
: _M_impl(__a)
^
/usr/include/c++/7/bits/stl_vector.h:88:2: note: candidate:
std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp =
std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>; _Alloc =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >]
_Vector_impl()
^~~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:88:2: note: candidate expects 0
arguments, 1 provided
/usr/include/c++/7/bits/stl_vector.h:81:14: note: candidate: constexpr
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >
>::_Vector_impl::_Vector_impl(const
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >::_Vector_impl&)
struct _Vector_impl
^~~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:81:14: note: no known conversion for
argument 1 from âconst allocator_type {aka const
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >}â to âconst
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >::_Vector_impl&â
/usr/include/c++/7/bits/stl_vector.h:81:14: note: candidate: constexpr
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >
>::_Vector_impl::_Vector_impl(std::_Vector_base<std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >::_Vector_impl&&)
/usr/include/c++/7/bits/stl_vector.h:81:14: note: no known conversion for
argument 1 from âconst allocator_type {aka const
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >}â to
âstd::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >::_Vector_impl&&â
/usr/include/c++/7/bits/stl_vector.h: In instantiation of
âstd::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp =
std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>; _Alloc =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >]â:
/usr/include/c++/7/bits/stl_vector.h:284:23: required from
âstd::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const
allocator_type&) [with _Tp = std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>; _Alloc =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >; std::vector<_Tp,
_Alloc>::size_type = long unsigned int; std::vector<_Tp,
_Alloc>::allocator_type =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >]â
libavdevice/decklink_dec.cpp:649:56: required from here
/usr/include/c++/7/bits/stl_vector.h:162:37: error: âstruct
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >::_Vector_implâ has no
member named â_M_startâ; did you mean â_M_swap_dataâ?
{ _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/stl_vector.h:162:61: error: âstruct
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >::_Vector_implâ has no
member named â_M_end_of_storageâ
{ _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:163:25: error: âstruct
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >::_Vector_implâ has no
member named â_M_startâ; did you mean â_M_swap_dataâ?
- this->_M_impl._M_start); }
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/stl_vector.h:162:22: error: â_M_deallocateâ was not
declared in this scope
{ _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- this->_M_impl._M_start); }
~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:162:22: note: suggested alternative:
âav_realloc_fâ
{ _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------
av_realloc_f
- this->_M_impl._M_start); }
~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------
av_realloc_f
/usr/include/c++/7/bits/stl_vector.h: In instantiation of âvoid
std::vector<_Tp, _Alloc>::_M_default_initialize(std::vector<_Tp,
_Alloc>::size_type) [with _Tp = std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>; _Alloc =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >; std::vector<_Tp,
_Alloc>::size_type = long unsigned int]â:
/usr/include/c++/7/bits/stl_vector.h:285:30: required from
âstd::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const
allocator_type&) [with _Tp = std::vector<handle_klv(AVFormatContext*,
decklink_ctx*, IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>; _Alloc =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >; std::vector<_Tp,
_Alloc>::size_type = long unsigned int; std::vector<_Tp,
_Alloc>::allocator_type =
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> >]â
libavdevice/decklink_dec.cpp:649:56: required from here
/usr/include/c++/7/bits/stl_vector.h:1351:16: error: âstruct
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >::_Vector_implâ has no
member named â_M_finishâ
this->_M_impl._M_finish =
~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:1352:51: error: âstruct
std::_Vector_base<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket>,
std::allocator<std::vector<handle_klv(AVFormatContext*, decklink_ctx*,
IDeckLinkVideoInputFrame*, int64_t)::KLVPacket> > >::_Vector_implâ has no
member named â_M_startâ; did you mean â_M_swap_dataâ?
std::__uninitialized_default_n_a(this->_M_impl._M_start, __n,
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/stl_vector.h:1353:28: error: â_M_get_Tp_allocatorâ
was not declared in this scope
_M_get_Tp_allocator());
~~~~~~~~~~~~~~~~~~~^~
/usr/include/c++/7/bits/stl_vector.h:1353:28: note: suggested alternative:
âget_allocatorâ
_M_get_Tp_allocator());
~~~~~~~~~~~~~~~~~~~^~
get_allocator
/usr/include/c++/7/bits/stl_vector.h: In instantiation of
âstd::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = unsigned char;
_Alloc = std::allocator<unsigned char>]â:
/usr/include/c++/7/bits/stl_vector.h:263:15: required from
âstd::vector<_Tp, _Alloc>::vector() [with _Tp = unsigned char; _Alloc =
std::allocator<unsigned char>]â
libavdevice/decklink_dec.cpp:678:43: required from here
/usr/include/c++/7/bits/stl_vector.h:162:37: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
{ _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/stl_vector.h:162:61: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_end_of_storageâ
{ _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:163:25: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
- this->_M_impl._M_start); }
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/stl_vector.h:162:22: error: â_M_deallocateâ was not
declared in this scope
{ _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- this->_M_impl._M_start); }
~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:162:22: note: suggested alternative:
âav_realloc_fâ
{ _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------
av_realloc_f
- this->_M_impl._M_start); }
~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------
av_realloc_f
In file included from /usr/include/c++/7/vector:69:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/vector.tcc: In instantiation of âvoid
std::vector<_Tp, _Alloc>::_M_default_append(std::vector<_Tp,
_Alloc>::size_type) [with _Tp = unsigned char; _Alloc = std::allocator<unsigned
char>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]â:
/usr/include/c++/7/bits/stl_vector.h:692:21: required from âvoid
std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type) [with _Tp
= unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp,
_Alloc>::size_type = long unsigned int]â
libavdevice/decklink_dec.cpp:679:48: required from here
/usr/include/c++/7/bits/vector.tcc:559:32: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_end_of_storageâ
if (size_type(this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:560:20: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_finishâ
- this->_M_impl._M_finish) >= __n)
~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:562:22: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_finishâ
this->_M_impl._M_finish =
~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:563:50: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_finishâ
std::__uninitialized_default_n_a(this->_M_impl._M_finish,
~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:564:32: error: â_M_get_Tp_allocatorâ was
not declared in this scope
__n, _M_get_Tp_allocator());
~~~~~~~~~~~~~~~~~~~^~
/usr/include/c++/7/bits/vector.tcc:564:32: note: suggested alternative:
âget_allocatorâ
__n, _M_get_Tp_allocator());
~~~~~~~~~~~~~~~~~~~^~
get_allocator
/usr/include/c++/7/bits/vector.tcc:576:34: error: â_M_get_Tp_allocatorâ was
not declared in this scope
__n, _M_get_Tp_allocator());
~~~~~~~~~~~~~~~~~~~^~
/usr/include/c++/7/bits/vector.tcc:576:34: note: suggested alternative:
âget_allocatorâ
__n, _M_get_Tp_allocator());
~~~~~~~~~~~~~~~~~~~^~
get_allocator
/usr/include/c++/7/bits/vector.tcc:579:23: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
this->_M_impl._M_start, this->_M_impl._M_finish,
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/vector.tcc:579:47: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_finishâ
this->_M_impl._M_start, this->_M_impl._M_finish,
~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:586:26: error: â_M_get_Tp_allocatorâ was
not declared in this scope
_M_get_Tp_allocator());
~~~~~~~~~~~~~~~~~~~^~
/usr/include/c++/7/bits/vector.tcc:586:26: note: suggested alternative:
âget_allocatorâ
_M_get_Tp_allocator());
~~~~~~~~~~~~~~~~~~~^~
get_allocator
/usr/include/c++/7/bits/vector.tcc:587:18: error: â_M_deallocateâ was not
declared in this scope
_M_deallocate(__new_start, __len);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:587:18: note: suggested alternative:
âav_realloc_fâ
_M_deallocate(__new_start, __len);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
av_realloc_f
/usr/include/c++/7/bits/vector.tcc:590:36: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/vector.tcc:590:60: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_finishâ
std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:591:27: error: â_M_get_Tp_allocatorâ was
not declared in this scope
_M_get_Tp_allocator());
~~~~~~~~~~~~~~~~~~~^~
/usr/include/c++/7/bits/vector.tcc:591:27: note: suggested alternative:
âget_allocatorâ
_M_get_Tp_allocator());
~~~~~~~~~~~~~~~~~~~^~
get_allocator
/usr/include/c++/7/bits/vector.tcc:592:36: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
_M_deallocate(this->_M_impl._M_start,
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/vector.tcc:593:22: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_end_of_storageâ
this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:594:24: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
- this->_M_impl._M_start);
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/vector.tcc:592:21: error: â_M_deallocateâ was not
declared in this scope
_M_deallocate(this->_M_impl._M_start,
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- this->_M_impl._M_start);
~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:592:21: note: suggested alternative:
âav_realloc_fâ
_M_deallocate(this->_M_impl._M_start,
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
-------------------------
av_realloc_f
this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------
av_realloc_f
- this->_M_impl._M_start);
~~~~~~~~~~~~~~~~~~~~~~~~~
-------------------------
av_realloc_f
/usr/include/c++/7/bits/vector.tcc:595:22: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
this->_M_impl._M_start = __new_start;
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/vector.tcc:596:22: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_finishâ
this->_M_impl._M_finish = __new_start + __size + __n;
~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:597:22: error: âstruct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_end_of_storageâ
this->_M_impl._M_end_of_storage = __new_start + __len;
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/vector:64:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/stl_vector.h: In instantiation of âstd::vector<_Tp,
_Alloc>::size_type std::vector<_Tp, _Alloc>::max_size() const [with _Tp =
unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp,
_Alloc>::size_type = long unsigned int]â:
/usr/include/c++/7/bits/vector.tcc:68:23: required from âvoid
std::vector<_Tp, _Alloc>::reserve(std::vector<_Tp, _Alloc>::size_type) [with
_Tp = unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp,
_Alloc>::size_type = long unsigned int]â
libavdevice/decklink_dec.cpp:692:31: required from here
/usr/include/c++/7/bits/stl_vector.h:676:59: error: â_M_get_Tp_allocatorâ
was not declared in this scope
{ return _Alloc_traits::max_size(_M_get_Tp_allocator()); }
~~~~~~~~~~~~~~~~~~~^~
/usr/include/c++/7/bits/stl_vector.h:676:59: note: suggested alternative:
âget_allocatorâ
{ return _Alloc_traits::max_size(_M_get_Tp_allocator()); }
~~~~~~~~~~~~~~~~~~~^~
get_allocator
/usr/include/c++/7/bits/stl_vector.h: In instantiation of âstd::vector<_Tp,
_Alloc>::size_type std::vector<_Tp, _Alloc>::capacity() const [with _Tp =
unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp,
_Alloc>::size_type = long unsigned int]â:
/usr/include/c++/7/bits/vector.tcc:70:17: required from âvoid
std::vector<_Tp, _Alloc>::reserve(std::vector<_Tp, _Alloc>::size_type) [with
_Tp = unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp,
_Alloc>::size_type = long unsigned int]â
libavdevice/decklink_dec.cpp:692:31: required from here
/usr/include/c++/7/bits/stl_vector.h:751:40: error: âconst struct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_end_of_storageâ
{ return size_type(this->_M_impl._M_end_of_storage
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:752:21: error: âconst struct
std::_Vector_base<unsigned char, std::allocator<unsigned char>
>::_Vector_implâ has no member named â_M_startâ; did you mean
â_M_swap_dataâ?
- this->_M_impl._M_start); }
~~~~~~~~~~~~~~^~~~~~~~
_M_swap_data
/usr/include/c++/7/bits/stl_vector.h: In instantiation of
âstd::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp =
unsigned char; _Alloc = std::allocator<unsigned char>]â:
/usr/include/c++/7/bits/stl_vector.h:127:17: required from
âstd::_Vector_base<_Tp, _Alloc>::_Vector_base() [with _Tp = unsigned char;
_Alloc = std::allocator<unsigned char>]â
/usr/include/c++/7/bits/stl_vector.h:263:15: required from
âstd::vector<_Tp, _Alloc>::vector() [with _Tp = unsigned char; _Alloc =
std::allocator<unsigned char>]â
libavdevice/decklink_dec.cpp:678:43: required from here
/usr/include/c++/7/bits/stl_vector.h:89:65: error: invalid use of incomplete
type âstruct __gnu_cxx::__alloc_traits<std::allocator<unsigned char> >â
: _Tp_alloc_type(), _M_start(), _M_finish(), _M_end_of_storage()
^
In file included from /usr/include/c++/7/bits/stl_construct.h:61:0,
from /usr/include/c++/7/vector:62,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/ext/alloc_traits.h:50:10: note: declaration of âstruct
__gnu_cxx::__alloc_traits<std::allocator<unsigned char> >â
struct __alloc_traits
^~~~~~~~~~~~~~
In file included from /usr/include/c++/7/vector:64:0,
from libavdevice/decklink_dec.cpp:25:
/usr/include/c++/7/bits/stl_vector.h:89:65: error: using invalid field
âstd::_Vector_base<_Tp, _Alloc>::_Vector_impl::_M_startâ
: _Tp_alloc_type(), _M_start(), _M_finish(), _M_end_of_storage()
^
/usr/include/c++/7/bits/stl_vector.h:89:65: error: using invalid field
âstd::_Vector_base<_Tp, _Alloc>::_Vector_impl::_M_finishâ
/usr/include/c++/7/bits/stl_vector.h:89:65: error: using invalid field
âstd::_Vector_base<_Tp, _Alloc>::_Vector_impl::_M_end_of_storageâ
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".