[vlc-commits] codec: avcodec: disable rawvideo

Francois Cartegnie git at videolan.org
Thu Nov 15 21:40:06 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 14 11:01:30 2018 +0100| [398e1b7cc5b091387c481d0b07a8517a4f5ac615] | committer: Francois Cartegnie

codec: avcodec: disable rawvideo

reversed lookup can't match masks

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=398e1b7cc5b091387c481d0b07a8517a4f5ac615
---

 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 0e08c11fc6..912d1b667e 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 );



More information about the vlc-commits mailing list