Hi!
Attached patch sets bits_per_raw_sample when decoding hqx.
Please comment, Carl Eugen
diff --git a/libavcodec/hqx.c b/libavcodec/hqx.c
index c4b3bc6..44804cf 100644
--- a/libavcodec/hqx.c
+++ b/libavcodec/hqx.c
@@ -554,7 +554,7 @@ static int hqx_decode_frame(AVCodecContext *avctx, void
*data,
avctx->coded_height = FFALIGN(ctx->height, 16);
avctx->width = ctx->width;
avctx->height = ctx->height;
- avctx->bits_per_raw_sample = 10;
+ avctx->bits_per_raw_sample = ctx->dcb;
switch (ctx->format) {
case HQX_422:
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel