aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2023-03-30 18:18:05 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2023-04-15 22:38:12 +0200
commite25d8a4228dfd722f3a346368f4f36049e873b79 (patch)
treef8b8efb1fa22b37f0590957f927a230999075d2e
parentb66b297e583ed11fbfeda9ad426751f1eccb8c76 (diff)
downloadffmpeg-e25d8a4228dfd722f3a346368f4f36049e873b79.tar.gz
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@niedermayer.cc> (cherry picked from commit 0adb375377f369b69b24d86bbfe674b7693ccf3c) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/j2kenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c
index f8c9f7fbe3..a2d29aa268 100644
--- a/libavcodec/j2kenc.c
+++ b/libavcodec/j2kenc.c
@@ -1155,7 +1155,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;
}