Skip to content

Commit d13c207

Browse files
committed
Addressing some comments
1 parent 1c8b5af commit d13c207

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ The changes are relative to the previous release, unless the baseline is specifi
2424
is true.
2525
* Write an empty HandlerBox name field instead of "libavif" (saves 7 bytes).
2626
* Update svt.cmd/svt.sh/LocalSvt.cmake: v2.2.1
27+
* In avif.h, changed "AVIF_SPEED_FASTEST" value to 13 from 10.
2728

2829
## [1.1.1] - 2024-07-30
2930

apps/avifenc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static void syntaxLong(void)
202202
printf(" -s,--speed S : Encoder speed (%d-%d, slowest-fastest, 'default' or 'd' for codec internal defaults. default speed: 6)\n",
203203
AVIF_SPEED_SLOWEST,
204204
AVIF_SPEED_FASTEST);
205-
printf(" libaom & rav1e range 0-10\n");
205+
printf(" libaom range 0-9 & rav1e range 0-10\n");
206206
printf("\n");
207207
printf("Advanced options:\n");
208208
printf(" -j,--jobs J : Number of jobs (worker threads). Use \"all\" to potentially use as many cores as possible (default: all)\n");

src/codec_svt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,10 @@ static avifResult svtCodecEncodeImage(avifCodec * codec,
161161
if (encoder->speed != AVIF_SPEED_DEFAULT) {
162162
#if SVT_AV1_CHECK_VERSION(0, 9, 0)
163163
int speed = AVIF_CLAMP(encoder->speed, 0, AVIF_SPEED_FASTEST);
164-
svt_config->enc_mode = (int8_t)speed;
165164
#else
166165
int speed = AVIF_CLAMP(encoder->speed, 0, 8);
167-
svt_config->enc_mode = (int8_t)speed;
168166
#endif
167+
svt_config->enc_mode = (int8_t)speed;
169168
}
170169

171170
if (color_format == EB_YUV422 || image->depth > 10) {

0 commit comments

Comments
 (0)