From 42d1ffa3a27d5f8bb162c6bbc99bf8631883ba8b Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Mon, 8 Oct 2007 12:08:42 +0000 Subject: fix 10 bit per comp detection Originally committed as revision 10683 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dnxhddec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/dnxhddec.c') diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c index 703fb0c1a2..3452d49629 100644 --- a/libavcodec/dnxhddec.c +++ b/libavcodec/dnxhddec.c @@ -108,7 +108,7 @@ static int dnxhd_decode_header(DNXHDContext *ctx, uint8_t *buf, int buf_size, in dprintf(ctx->avctx, "width %d, heigth %d\n", ctx->width, ctx->height); - if (buf[0x21] & 0x80) { + if (buf[0x21] & 0x40) { av_log(ctx->avctx, AV_LOG_ERROR, "10 bit per component\n"); return -1; } -- cgit v1.2.3