[FFmpeg-devel] [PATCH 3/4] avcodec/ffv1enc: remap allows using rice golomb with more bits

Michael Niedermayer michael at niedermayer.cc
Thu Mar 20 03:19:15 EET 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 4fea6cd31c8..12f3952453b 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -975,7 +975,7 @@ static av_cold int encode_init_internal(AVCodecContext *avctx)
     if (ret < 0)
         return ret;
 
-    if (s->bits_per_raw_sample > (s->version > 3 ? 16 : 8)) {
+    if (s->bits_per_raw_sample > (s->version > 3 ? 16 : 8) && !s->remap_mode) {
         if (s->ac == AC_GOLOMB_RICE) {
             av_log(avctx, AV_LOG_INFO,
                     "high bits_per_raw_sample, forcing range coder\n");
-- 
2.48.1



More information about the ffmpeg-devel mailing list