]> git.sesse.net Git - vlc/commitdiff
avcodec: print picture format name when unsupported (refs #7994)
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 4 Jan 2013 16:40:43 +0000 (18:40 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 4 Jan 2013 16:43:44 +0000 (18:43 +0200)
modules/codec/avcodec/video.c

index 7570299ea0fbd980e04e4218d1fada7e1dc20915..2169848d65a48f2f6ea0ecd5288937a59059280c 100644 (file)
@@ -927,8 +927,9 @@ static void ffmpeg_CopyPicture( decoder_t *p_dec,
     }
     else
     {
-        msg_Err( p_dec, "don't know how to convert chroma %i",
-                 p_sys->p_context->pix_fmt );
+        const char *name = av_get_pix_fmt_name( p_sys->p_context->pix_fmt );
+        msg_Err( p_dec, "Unsupported decoded output format %d (%s)",
+                 p_sys->p_context->pix_fmt, name ? name : "unknown" );
         p_dec->b_error = 1;
     }
 }