diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2023-03-30 18:18:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-04-21 01:55:20 +0200 |
commit | f8b3acf517b8a7f102486d0d6cf3825bb9a43f62 (patch) | |
tree | afaa67aa070a24a23e01efaaaf840fc66f325137 /libavcodec | |
parent | c73a9382c634f07927f9d729bd902bda75c76a9a (diff) | |
download | ffmpeg-f8b3acf517b8a7f102486d0d6cf3825bb9a43f62.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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/j2kenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c index 434c93f712..1931def765 100644 --- a/libavcodec/j2kenc.c +++ b/libavcodec/j2kenc.c @@ -1151,7 +1151,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; } |