[vlc-commits] avcodec: log each decoder format we try to use

Steve Lhomme git at videolan.org
Tue Feb 6 11:12:08 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Feb  6 09:19:05 2018 +0100| [5762aec06e63a9c4096daa07bfe63c68a2285521] | committer: Steve Lhomme

avcodec: log each decoder format we try to use

Otherwise it's hard to tell when different hardware acceleration & CPU formats.

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

 modules/codec/avcodec/video.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 3e9601eed9..a23b38ce90 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1603,6 +1603,8 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,
             msg_Err(p_dec, "unspecified video dimensions");
             continue;
         }
+        const AVPixFmtDescriptor *dsc = av_pix_fmt_desc_get(hwfmt);
+        msg_Dbg(p_dec, "trying format %s", dsc ? dsc->name : "unknown");
         if (lavc_UpdateVideoFormat(p_dec, p_context, hwfmt, swfmt))
             continue; /* Unsupported brand of hardware acceleration */
         post_mt(p_sys);



More information about the vlc-commits mailing list