[FFmpeg-devel] [PATCH v3 3/3] lavd: deprecate opengl outdev

Josh de Kock josh at itanimul.li
Sun Sep 11 21:54:58 EEST 2016


This device depends on SDL which is deprecated.

Signed-off-by: Josh de Kock <josh at itanimul.li>
---
 Changelog                | 2 +-
 doc/outdevs.texi         | 2 ++
 libavdevice/opengl_enc.c | 2 ++
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Changelog b/Changelog
index f609a86..6c9f766 100644
--- a/Changelog
+++ b/Changelog
@@ -27,7 +27,7 @@ version <next>:
 - weave filter
 - gblur filter
 - avgblur filter
-- deprecated sdl outdev
+- deprecated sdl and 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