1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/ffv1enc: Fix remap > 0 with gbrp12, that is non float

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2025-04-03 15:29:02 +02:00
parent 175cd4ced0
commit 89df6d4068

View File

@ -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);