From 1cbb145c509962f5e091a631f667e7226e962390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 20 Dec 2022 14:10:01 +0200 Subject: [PATCH] avviddec: Disable AV1 decoder We have various elements for AV1 decoding, the ffmpeg one only works if hardware support is available and seems to require special signalling. Part-of: --- subprojects/gst-libav/ext/libav/gstavviddec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-libav/ext/libav/gstavviddec.c b/subprojects/gst-libav/ext/libav/gstavviddec.c index 39724df799..43cea456ae 100644 --- a/subprojects/gst-libav/ext/libav/gstavviddec.c +++ b/subprojects/gst-libav/ext/libav/gstavviddec.c @@ -2625,6 +2625,9 @@ gst_ffmpegviddec_register (GstPlugin * plugin) /* MP2 : Use MP3 for decoding */ /* Theora: Use libtheora based theoradec */ /* CDG: use cdgdec */ + /* AV1: Use av1dec, dav1ddec or any of the hardware decoders. + * Also ffmpeg's decoder only works with hardware support! + */ if (!strcmp (in_plugin->name, "theora") || !strcmp (in_plugin->name, "mpeg1video") || strstr (in_plugin->name, "crystalhd") != NULL || @@ -2633,7 +2636,8 @@ gst_ffmpegviddec_register (GstPlugin * plugin) !strcmp (in_plugin->name, "pgssub") || !strcmp (in_plugin->name, "dvdsub") || !strcmp (in_plugin->name, "dvbsub") || - !strcmp (in_plugin->name, "cdgraphics")) { + !strcmp (in_plugin->name, "cdgraphics") || + !strcmp (in_plugin->name, "av1")) { GST_LOG ("Ignoring decoder %s", in_plugin->name); continue; }