vlc | branch: master | Steve Lhomme <[email protected]> | Wed Aug 10 16:18:33 2016 +0200| [59e02f6aeb940ad104ca1512a5d4fc58e063aef4] | committer: Jean-Baptiste Kempf
avcodec: log why the va is refused on chroma mismatches Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=59e02f6aeb940ad104ca1512a5d4fc58e063aef4 --- modules/codec/avcodec/va.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/codec/avcodec/va.c b/modules/codec/avcodec/va.c index 8a6b549..091c35a 100644 --- a/modules/codec/avcodec/va.c +++ b/modules/codec/avcodec/va.c @@ -128,9 +128,12 @@ vlc_va_t *vlc_va_New(vlc_object_t *obj, AVCodecContext *avctx, } vlc_fourcc_t chroma; + vlc_fourcc_t expected = vlc_va_GetChroma( pix_fmt, avctx->sw_pix_fmt ); va->setup(va, &chroma); - if (chroma != vlc_va_GetChroma(pix_fmt, avctx->sw_pix_fmt)) + if (chroma != expected) { /* Mismatch, cannot work, fail */ + msg_Dbg( obj, "chroma mismatch %4.4s expected %4.4s", + (const char*)&chroma, (const char*) &expected ); vlc_va_Delete(va, avctx); #endif va = NULL; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
