[FFmpeg-devel] [PATCH v2 2/2] lavd: deprecate opengl outdev
Josh de Kock
josh at itanimul.li
Sat Sep 10 23:59:14 EEST 2016
This device depends on SDL which is deprecated.
Signed-off-by: Josh de Kock <josh at itanimul.li>
---
Changelog | 1 +
doc/outdevs.texi | 2 ++
libavdevice/opengl_enc.c | 2 ++
3 files changed, 5 insertions(+)
diff --git a/Changelog b/Changelog
index f609a86..f02bf06 100644
--- a/Changelog
+++ b/Changelog
@@ -28,6 +28,7 @@ version <next>:
- gblur filter
- avgblur filter
- deprecated sdl outdev
+- deprecated opengl outdev
version 3.1:
diff --git a/doc/outdevs.texi b/doc/outdevs.texi
index cfcc176..34afa6f 100644
--- a/doc/outdevs.texi
+++ b/doc/outdevs.texi
@@ -214,6 +214,8 @@ See also @url{http://linux-fbdev.sourceforge.net/}, and fbset(1).
@section opengl
OpenGL output device.
+This device is deprecated and will be removed in a future release.
+
To enable this output device you need to configure FFmpeg with @code{--enable-opengl}.
This output device allows one to render to OpenGL context.
diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c
index 1dbbb80..d611830 100644
--- a/libavdevice/opengl_enc.c
+++ b/libavdevice/opengl_enc.c
@@ -1064,6 +1064,8 @@ static av_cold int opengl_write_header(AVFormatContext *h)
AVStream *st;
int ret;
+ av_log(h, AV_LOG_WARNING, "The opengl output device is deprecated.\n");
+
if (h->nb_streams != 1 ||
h->streams[0]->codecpar->codec_type != AVMEDIA_TYPE_VIDEO ||
h->streams[0]->codecpar->codec_id != AV_CODEC_ID_RAWVIDEO) {
--
2.7.4 (Apple Git-66)
More information about the ffmpeg-devel
mailing list