You've already forked FFmpeg
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:
@ -942,7 +942,7 @@ av_cold int ff_ffv1_encode_setup_plane_info(AVCodecContext *avctx,
|
|||||||
return AVERROR(ENOSYS);
|
return AVERROR(ENOSYS);
|
||||||
}
|
}
|
||||||
s->flt = !!(desc->flags & AV_PIX_FMT_FLAG_FLOAT);
|
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);
|
s->version = FFMAX(s->version, 4);
|
||||||
av_assert0(s->bits_per_raw_sample >= 8);
|
av_assert0(s->bits_per_raw_sample >= 8);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user