[vlc-commits] avcodec: print picture format name when unsupported (refs #7994)

Rémi Denis-Courmont git at videolan.org
Fri Jan 4 17:43:49 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jan  4 18:40:43 2013 +0200| [e313dedfb1ee4f8dd791f0037b4ecc26675473e0] | 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=e313dedfb1ee4f8dd791f0037b4ecc26675473e0
---

 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..2169848 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, "Unsupported decoded output format %d (%s)",
+                 p_sys->p_context->pix_fmt, name ? name : "unknown" );
         p_dec->b_error = 1;
     }
 }



More information about the vlc-commits mailing list