[FFmpeg-devel] [PATCH] avcodec/ffv1enc: Fix remap > 0 with gbrp12, that is non float
Michael Niedermayer
michael at niedermayer.cc
Thu Apr 3 16:33:25 EEST 2025
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavcodec/ffv1enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index 221344794e2..35a1ae16d48 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -942,7 +942,7 @@ av_cold int ff_ffv1_encode_setup_plane_info(AVCodecContext *avctx,
return AVERROR(ENOSYS);
}
s->flt = !!(desc->flags & AV_PIX_FMT_FLAG_FLOAT);
- if (s->flt)
+ if (s->flt || s->remap_mode > 0)
s->version = FFMAX(s->version, 4);
av_assert0(s->bits_per_raw_sample >= 8);
--
2.49.0
More information about the ffmpeg-devel
mailing list