aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libvpxenc.c
diff options
context:
space:
mode:
authorAaron Thompson <dev@aaront.org>2024-05-16 06:10:36 +0000
committerJames Zern <jzern@google.com>2024-05-17 15:40:31 -0700
commitbe3404bbacae5a046e1b3e66a98810b4b7564249 (patch)
tree1577ab2e0a84838bed244239ac6fa75671ce9591 /libavcodec/libvpxenc.c
parent727a603158b466a3f11f419012856e845a0721b9 (diff)
downloadffmpeg-be3404bbacae5a046e1b3e66a98810b4b7564249.tar.gz
lavc/libvpxenc: Fix parsing of ts_layering_mode parameter
The value was being parsed as base 4, so the value "4" was invalid and would result in ts_layering_mode being set to 0. Signed-off-by: Aaron Thompson <dev@aaront.org> Signed-off-by: James Zern <jzern@google.com>
Diffstat (limited to 'libavcodec/libvpxenc.c')
-rw-r--r--libavcodec/libvpxenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index bcbdc4981e..5c7b6e9de7 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -684,7 +684,7 @@ static int vpx_ts_param_parse(VPxContext *ctx, struct vpx_codec_enc_cfg *enccfg,
vp8_ts_parse_int_array(enccfg->ts_layer_id, value, value_len, VPX_TS_MAX_PERIODICITY);
} else if (!strcmp(key, "ts_layering_mode")) {
/* option for pre-defined temporal structures in function set_temporal_layer_pattern. */
- ts_layering_mode = strtoul(value, &value, 4);
+ ts_layering_mode = strtoul(value, &value, 10);
}
#if (VPX_ENCODER_ABI_VERSION >= 12) && CONFIG_LIBVPX_VP9_ENCODER