comparison src/of-video-1-cassert.patch @ 7133:1661d85f0497

of-video: Add patch for missing include of <cassert>. * src/of-video-1-cassert.patch: Add new file. * dist-files.mk: Add new file to list.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 28 Mar 2024 19:21:22 +0100
parents
children
comparison
equal deleted inserted replaced
7132:91a699a47331 7133:1661d85f0497
1 # HG changeset patch
2 # User Markus Mützel <markus.muetzel@gmx.de>
3 # Date 1711649841 -3600
4 # Thu Mar 28 19:17:21 2024 +0100
5 # Node ID af6f049d3bf3cbc16bb780f721b95ee1f2cf7668
6 # Parent 9d9deeb848dceb16f50fe7c44795c57900230b89
7 Include <cassert> in file that uses "assert".
8
9 * src/cap_ffmpeg_impl_ov.hpp: The header <cassert> happened to be include via
10 some headers from Octave before. That is no longer the case for Octave 10.
11 Include the header directly in a file that requires it.
12
13 See also: https://github.com/Andy1978/octave-video/issues/1
14
15 diff -r 9d9deeb848dc -r af6f049d3bf3 src/cap_ffmpeg_impl_ov.hpp
16 --- a/src/cap_ffmpeg_impl_ov.hpp Sat Jul 08 08:28:52 2023 +0200
17 +++ b/src/cap_ffmpeg_impl_ov.hpp Thu Mar 28 19:17:21 2024 +0100
18 @@ -132,6 +132,8 @@
19 extern "C" {
20 #endif
21
22 +#include <cassert>
23 +
24 #include "ffmpeg_codecs.hpp"
25
26 #include <libavutil/mathematics.h>