Skip to content

Commit 1794021

Browse files
committed
Merge branch 'master' of github.com:h4tr3d/avcpp
2 parents a4d19e2 + da338e3 commit 1794021

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if (AVCPP_NOT_SUBPROJECT)
8888
install(EXPORT avcpp-targets
8989
FILE avcpp-targets.cmake
9090
NAMESPACE avcpp::
91-
DESTINATION lib/cmake/avcpp)
91+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/avcpp)
9292

9393
include(CMakePackageConfigHelpers)
9494
configure_package_config_file(

src/formatcontext.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
#include "codeccontext.h"
1010
#include "codecparameters.h"
1111

12+
#if !API_AVFORMAT_URL
13+
extern "C"
14+
{
15+
#include <libavutil/avstring.h>
16+
}
17+
#endif
18+
1219
using namespace std;
1320

1421
namespace {
@@ -60,7 +67,7 @@ void set_uri(AVFormatContext *ctx, string_view uri)
6067
av_free(ctx->url);
6168
ctx->url = av_strdup(uri.data());
6269
#else
63-
av_strlcpy(ctx->filename, uri.data(), std::min<size_t>(sizeof(m_raw->filename), uri.size() + 1));
70+
av_strlcpy(ctx->filename, uri.data(), std::min<size_t>(sizeof(ctx->filename), uri.size() + 1));
6471
ctx->filename[uri.size()] = '\0';
6572
#endif
6673
}

tests/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ catch2 = dependency('catch2', required: true, fallback:['catch2','catch2_dep'])
55
main_test = static_library(
66
'main_test',
77
'test-main.cpp',
8-
dependencies: catch2
8+
dependencies: [catch2, avcpp_dep]
99
)
1010

1111
main_test_dep = declare_dependency(

0 commit comments

Comments
 (0)