aboutsummaryrefslogtreecommitdiff
path: root/ports/avcpp/0001-remove-problematic-compound-literal.patch
diff options
context:
space:
mode:
authorCharlie Barto <chbarto@microsoft.com>2021-05-18 16:00:50 -0700
committerGitHub <noreply@github.com>2021-05-18 16:00:50 -0700
commit113880e5222220db532b102671c75afe99f96818 (patch)
treea6bbf42c3201edfaee9460b8232b5dd31110bf6d /ports/avcpp/0001-remove-problematic-compound-literal.patch
parentf68f30c1e1aebe53081d722e8add85cd85ef8f11 (diff)
downloadvcpkg-113880e5222220db532b102671c75afe99f96818.tar.gz
vcpkg-113880e5222220db532b102671c75afe99f96818.zip
[avcpp] Add new port (#17716)
* add avcpp port * add avcpp * apply code review comments * update versions
Diffstat (limited to 'ports/avcpp/0001-remove-problematic-compound-literal.patch')
-rw-r--r--ports/avcpp/0001-remove-problematic-compound-literal.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/ports/avcpp/0001-remove-problematic-compound-literal.patch b/ports/avcpp/0001-remove-problematic-compound-literal.patch
new file mode 100644
index 000000000..aa6c58cc2
--- /dev/null
+++ b/ports/avcpp/0001-remove-problematic-compound-literal.patch
@@ -0,0 +1,14 @@
+diff --git a/src/avutils.h b/src/avutils.h
+index 29c4ae0..3bfaf82 100644
+--- a/src/avutils.h
++++ b/src/avutils.h
+@@ -42,7 +42,7 @@ namespace av {
+ // Basic FFmpeg constants
+ constexpr auto NoPts = static_cast<int64_t>(AV_NOPTS_VALUE);
+ constexpr auto TimeBase = static_cast<int>(AV_TIME_BASE);
+-constexpr auto TimeBaseQ = static_cast<AVRational>(AV_TIME_BASE_Q);
++constexpr auto TimeBaseQ = AVRational{1, AV_TIME_BASE};
+
+
+ template<typename R, typename T>
+