comparison 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
comparison
equal deleted inserted replaced
5790:c3f2a6425d2d 5791:562c3853f8dc
106 ctx->height = AV_RB16(buf + 0x18); 106 ctx->height = AV_RB16(buf + 0x18);
107 ctx->width = AV_RB16(buf + 0x1a); 107 ctx->width = AV_RB16(buf + 0x1a);
108 108
109 dprintf(ctx->avctx, "width %d, heigth %d\n", ctx->width, ctx->height); 109 dprintf(ctx->avctx, "width %d, heigth %d\n", ctx->width, ctx->height);
110 110
111 if (buf[0x21] & 0x80) { 111 if (buf[0x21] & 0x40) {
112 av_log(ctx->avctx, AV_LOG_ERROR, "10 bit per component\n"); 112 av_log(ctx->avctx, AV_LOG_ERROR, "10 bit per component\n");
113 return -1; 113 return -1;
114 } 114 }
115 115
116 ctx->cid = AV_RB32(buf + 0x28); 116 ctx->cid = AV_RB32(buf + 0x28);