vlc/vlc-3.0 | branch: master | Steve Lhomme <[email protected]> | 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 <[email protected]> > 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); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
