blob: f8ccd1d558623062d6c3188224414376bae14d70 [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001From fe27d0e2341683606704115949d16250e4cacbfa Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Jason Wessel <jason.wessel@windriver.com>
3Date: Wed, 9 May 2018 13:33:59 -0700
4Subject: [PATCH] Temporarliy work around deprecated ffmpeg RAW function
5 compile failure until next uprev
6
7Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Brad Bishop26bdd442019-08-16 17:08:17 -04008
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08009---
10 modules/videoio/src/cap_ffmpeg_impl.hpp | 8 ++++++++
11 1 file changed, 8 insertions(+)
12
13diff --git a/modules/videoio/src/cap_ffmpeg_impl.hpp b/modules/videoio/src/cap_ffmpeg_impl.hpp
Brad Bishop26bdd442019-08-16 17:08:17 -040014index 0d360ad..566df66 100644
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080015--- a/modules/videoio/src/cap_ffmpeg_impl.hpp
16+++ b/modules/videoio/src/cap_ffmpeg_impl.hpp
Brad Bishop26bdd442019-08-16 17:08:17 -040017@@ -736,6 +736,14 @@ struct ImplMutex::Impl
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080018
19 #endif
20
21+/* NOTE This is deprecated in ffmpeg and the code should be removed */
22+#ifndef AVFMT_RAWPICTURE
23+#define AVFMT_RAWPICTURE 0x0020
24+#endif /* AVFMT_RAWPICTURE */
25+#ifndef CODEC_FLAG_GLOBAL_HEADER
26+#define CODEC_FLAG_GLOBAL_HEADER AV_CODEC_FLAG_GLOBAL_HEADER
27+#endif
28+
29 void ImplMutex::init()
30 {
31 impl = new Impl();