From 398e1b7cc5b091387c481d0b07a8517a4f5ac615 Mon Sep 17 00:00:00 2001
From: Francois Cartegnie <fcvlcdev@free.fr>
Date: Wed, 14 Nov 2018 11:01:30 +0100
Subject: [PATCH] codec: avcodec: disable rawvideo

reversed lookup can't match masks
---
 modules/codec/avcodec/avcodec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/avcodec.c b/modules/codec/avcodec/avcodec.c
index 0e08c11fc6fc..912d1b667e27 100644
--- a/modules/codec/avcodec/avcodec.c
+++ b/modules/codec/avcodec/avcodec.c
@@ -256,7 +256,8 @@ AVCodecContext *ffmpeg_AllocContext( decoder_t *p_dec,
 
     /* *** determine codec type *** */
     if( !GetFfmpegCodec( p_dec->fmt_in.i_cat, p_dec->fmt_in.i_codec,
-                         &i_codec_id, &psz_namecodec ) )
+                         &i_codec_id, &psz_namecodec ) ||
+         i_codec_id == AV_CODEC_ID_RAWVIDEO )
          return NULL;
 
     msg_Dbg( p_dec, "using %s %s", AVPROVIDER(LIBAVCODEC), LIBAVCODEC_IDENT );
-- 
GitLab