[vlc-commits] input: decoder: fix erroneous codec failure errors

Francois Cartegnie git at videolan.org
Wed Jun 21 21:34:29 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jun 21 12:28:29 2017 +0200| [6a253713a6131094c3a69cc924f4c8e4dbf7f4ea] | committer: Francois Cartegnie

input: decoder: fix erroneous codec failure errors

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

 src/input/decoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index aa380b640b..688fc6f451 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1871,7 +1871,7 @@ static void DeleteDecoder( decoder_t * p_dec )
 /* */
 static void DecoderUnsupportedCodec( decoder_t *p_dec, const es_format_t *fmt )
 {
-    if (fmt->i_codec != VLC_FOURCC('u','n','d','f')) {
+    if (fmt->i_codec != VLC_FOURCC('u','n','d','f') && fmt->i_codec) {
         const char *desc = vlc_fourcc_GetDescription(fmt->i_cat, fmt->i_codec);
         if (!desc || !*desc)
             desc = N_("No description for this codec");



More information about the vlc-commits mailing list