diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c index fec12f94ca..ec0f435610 100644 --- a/libavcodec/dpx.c +++ b/libavcodec/dpx.c @@ -92,6 +92,7 @@ static int decode_frame(AVCodecContext *avctx, // Need to end in 0x323 to read the bits per color buf += 3; + avctx->bits_per_raw_sample = bits_per_color = buf[0]; switch (descriptor) {