[SCM] libav/experimental: fix 10 bit per comp detection

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:07:58 UTC 2013


The following commit has been merged in the experimental branch:
commit 42d1ffa3a27d5f8bb162c6bbc99bf8631883ba8b
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date:   Mon Oct 8 12:08:42 2007 +0000

    fix 10 bit per comp detection
    
    Originally committed as revision 10683 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index 703fb0c..3452d49 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;
     }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list