You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/j2kenc: Replace BGR48 / GRAY16 test by test for number of bits
BGR48 is not supported and this was probably meant to be RGB48 so this fixes RGB48 a bit Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -1542,7 +1542,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
|
|
||||||
s->lambda = s->picture->quality * LAMBDA_SCALE;
|
s->lambda = s->picture->quality * LAMBDA_SCALE;
|
||||||
|
|
||||||
if (avctx->pix_fmt == AV_PIX_FMT_BGR48 || avctx->pix_fmt == AV_PIX_FMT_GRAY16)
|
if (s->cbps[0] > 8)
|
||||||
copy_frame_16(s);
|
copy_frame_16(s);
|
||||||
else
|
else
|
||||||
copy_frame_8(s);
|
copy_frame_8(s);
|
||||||
|
Reference in New Issue
Block a user