diff options
author | Peter Ross <pross@xvid.org> | 2022-11-01 09:24:29 +1100 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2022-11-01 09:24:29 +1100 |
commit | e1dd4a27ca275fd44c3700e2adf8d76903c17678 (patch) | |
tree | d72423c87c3fc8b11d0c709268886c3959623608 /libavcodec | |
parent | db774833638cd4465d979d6d28487bf08eefc485 (diff) | |
download | ffmpeg-e1dd4a27ca275fd44c3700e2adf8d76903c17678.tar.gz |
avcodec/svq1enc: do not use ambiguous interframe mean symbols
Don't emit interframe mean symbols -128 and 128.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/svq1enc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c index 92f91aeebd..b275b333dc 100644 --- a/libavcodec/svq1enc.c +++ b/libavcodec/svq1enc.c @@ -240,6 +240,11 @@ static int encode_block(SVQ1EncContext *s, uint8_t *src, uint8_t *ref, } } + if (best_mean == -128) + best_mean = -127; + else if (best_mean == 128) + best_mean = 127; + split = 0; if (best_score > threshold && level) { int score = 0; |