[vlc-commits] avcodec: log why the va is refused on chroma mismatches
Steve Lhomme
git at videolan.org
Sun Aug 21 18:14:41 CEST 2016
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | 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 <jb at videolan.org>
> 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;
More information about the vlc-commits
mailing list