diff dnxhddec.c @ 5791:562c3853f8dc libavcodec

fix 10 bit per comp detection
author bcoudurier
date Mon, 08 Oct 2007 12:08:42 +0000
parents a0d7ec11b87e
children aa620757cceb
line wrap: on
line diff
--- a/dnxhddec.c	Mon Oct 08 11:27:18 2007 +0000
+++ b/dnxhddec.c	Mon Oct 08 12:08:42 2007 +0000
@@ -108,7 +108,7 @@
 
     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;
     }