From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id A0ED2404D5 for ; Thu, 16 May 2024 06:11:31 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 60A4A68D516; Thu, 16 May 2024 09:11:28 +0300 (EEST) Received: from smtp-out1.aaront.org (smtp-out1.aaront.org [52.0.59.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 87AD268D3BC for ; Thu, 16 May 2024 09:11:21 +0300 (EEST) Received: by smtp-out1.aaront.org (Postfix) with ESMTP id 4Vg08l2Mz1zVS for ; Thu, 16 May 2024 06:11:19 +0000 (UTC) To: ffmpeg-devel@ffmpeg.org Date: Thu, 16 May 2024 06:10:36 +0000 Message-Id: <20240516061036.9528-1-dev@aaront.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] lavc/libvpxenc: Fix parsing of ts_layering_mode parameter X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Aaron Thompson via ffmpeg-devel Reply-To: FFmpeg development discussions and patches Cc: Aaron Thompson Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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 --- libavcodec/libvpxenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".