[FFmpeg-cvslog] avcodec/j2kenc: remove misleading pred value
Michael Niedermayer
git at videolan.org
Fri Dec 22 01:51:06 EET 2023
ffmpeg | branch: release/4.4 | Michael Niedermayer <michael at niedermayer.cc> | Thu Mar 30 18:18:05 2023 +0200| [b71ad913ff6c295c262a3336970eaa781f6ed77b] | committer: Michael Niedermayer
avcodec/j2kenc: remove misleading pred value
This field is only checked for being 0 or not and not zero means 5/3
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 0adb375377f369b69b24d86bbfe674b7693ccf3c)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b71ad913ff6c295c262a3336970eaa781f6ed77b
---
libavcodec/j2kenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c
index 052a698d4c..db7a9169e8 100644
--- a/libavcodec/j2kenc.c
+++ b/libavcodec/j2kenc.c
@@ -1736,7 +1736,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
if (avctx->pix_fmt == AV_PIX_FMT_PAL8 && (s->pred != FF_DWT97_INT || s->format != CODEC_JP2)) {
av_log(s->avctx, AV_LOG_WARNING, "Forcing lossless jp2 for pal8\n");
- s->pred = FF_DWT97_INT;
+ s->pred = 1;
s->format = CODEC_JP2;
}
More information about the ffmpeg-cvslog
mailing list