[FFmpeg-devel] [PATCH]Set bits_per_raw_sample for hqx
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Feb 23 14:44:23 CET 2015
Hi!
Attached patch sets bits_per_raw_sample when decoding hqx.
Please comment, Carl Eugen
-------------- next part --------------
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:
More information about the ffmpeg-devel
mailing list