[vlc-commits] avcodec: print picture format name when unsupported	(refs #7994)
    Rémi Denis-Courmont 
    git at videolan.org
       
    Fri Jan  4 17:41:04 CET 2013
    
    
  
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jan  4 18:40:43 2013 +0200| [5040b4971cc3cce0fe8ad6f2641db0dc98714313] | committer: Rémi Denis-Courmont
avcodec: print picture format name when unsupported (refs #7994)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5040b4971cc3cce0fe8ad6f2641db0dc98714313
---
 modules/codec/avcodec/video.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 7570299..a4ef99e 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -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, "don't know how to convert chroma %d (%s)",
+                 p_sys->p_context->pix_fmt, name ? name : "unknown" );
         p_dec->b_error = 1;
     }
 }
    
    
More information about the vlc-commits
mailing list