[vlc-commits] avcodec: log each decoder format we try to use
Steve Lhomme
git at videolan.org
Tue Feb 6 19:30:15 CET 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Feb 6 09:19:05 2018 +0100| [2514bca26205efc3b7cf7a7bba91c7e255143d1c] | committer: Jean-Baptiste Kempf
avcodec: log each decoder format we try to use
Otherwise it's hard to tell when different hardware acceleration & CPU formats.
(cherry picked from commit 5762aec06e63a9c4096daa07bfe63c68a2285521)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=2514bca26205efc3b7cf7a7bba91c7e255143d1c
---
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 b7f2b8e3f3..abb6bdd203 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1589,6 +1589,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