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 DD064482DC for ; Wed, 22 Nov 2023 21:34:39 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8226468CD25; Wed, 22 Nov 2023 23:34:36 +0200 (EET) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 90F6668CCD8 for ; Wed, 22 Nov 2023 23:34:30 +0200 (EET) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1cf7a1546c0so2021055ad.0 for ; Wed, 22 Nov 2023 13:34:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700688868; x=1701293668; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=YUFJE3nr7wa/VBPXcLy/TS8r8pdwU2jqR6jdsDVI7Ow=; b=X5sF4a+RSsrFTvE7hUouXGWVLzO9rWMX/hN8JDE1dIQoBgdI7MGAI+DZMFm5YaYGq4 XzsfdEZ8FV/pMDUTJIaXuk9WvgyyQc/NL/oLKrtzGSUyZ/zVJJlBF3lyeGf86XXmK6IE ysIYCUyCp4MOe4/snf7vZdc9Ee86PERT0eCek0M9JjThpw1RiL3yKAlIf1jcXYNDkzJw o+tUhC8XyqcmO+3C6R+fm/x2wgK0vbiFukaex/y+oNj4FH2lYvGNaUMZVTOo75k/O+GG ZQFvCVE1ZPTQ/HO+PqbtPJhfvZvlKgh2u3gUBerjAG24U2HUmOdtdl488XI1b/TOTeNs wJ6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700688868; x=1701293668; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YUFJE3nr7wa/VBPXcLy/TS8r8pdwU2jqR6jdsDVI7Ow=; b=w6DngkPkKFBbqYTjMfYJ5nO33LHjH+UJQPA2m4jMjYIGi6yiYPDs3Jwruh5wcPFc1R TsfMmsRSmmZforxQQhUC1/XW1zAjFSDZuE2HjXu3bxZcPI+QCuM0DhOeYK4cmMZBWi6o UCU3hovbQx36+TpLxdMglfqu4imq+Nd6/aXSujMpsKTlKud4MUeP1TUVyBcQnsihUGyc p8sPFDSCbPguF86sMffKyB1E9Atc3fTaV7bl7H4Wx588BvV3uZEuNS0GqRz3x7h1H2C8 l5dDPSwpQ7vjHuF8hOxGeqFET1MeVETdkJvx2JripVu/mK4orrXmqibLqx8eh5geDJwJ saeQ== X-Gm-Message-State: AOJu0YwNjcrAfXfisqaK6CppwIjxkogqgw5R9yhL9OT9Y9SnQNtpa5kB T5l+ITMczdytBEs8paHzm4FAT89/MmA= X-Google-Smtp-Source: AGHT+IHNllYBgSfjSH+ZhXxO3jTiCmEElEppe+cBQnvy9vHYVRuSvihHyuDtZ5ffRfHylGpJDhhU7Q== X-Received: by 2002:a17:903:187:b0:1cf:68a3:d901 with SMTP id z7-20020a170903018700b001cf68a3d901mr3807788plg.19.1700688868147; Wed, 22 Nov 2023 13:34:28 -0800 (PST) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id p5-20020a170902e74500b001cf54e6b385sm137736plf.203.2023.11.22.13.34.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 13:34:27 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 22 Nov 2023 18:34:20 -0300 Message-ID: <20231122213420.9987-1-jamrial@gmail.com> X-Mailer: git-send-email 2.42.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avfilter/asrc_anullsrc: fix allowed range for sample_rate 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: , Reply-To: FFmpeg development discussions and patches 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: Signed-off-by: James Almer --- libavfilter/asrc_anullsrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/asrc_anullsrc.c b/libavfilter/asrc_anullsrc.c index a8887da62d..a48728eaf0 100644 --- a/libavfilter/asrc_anullsrc.c +++ b/libavfilter/asrc_anullsrc.c @@ -51,8 +51,8 @@ typedef struct ANullContext { static const AVOption anullsrc_options[]= { { "channel_layout", "set channel_layout", OFFSET(ch_layout), AV_OPT_TYPE_CHLAYOUT, {.str = "stereo"}, 0, 0, FLAGS }, { "cl", "set channel_layout", OFFSET(ch_layout), AV_OPT_TYPE_CHLAYOUT, {.str = "stereo"}, 0, 0, FLAGS }, - { "sample_rate", "set sample rate", OFFSET(sample_rate) , AV_OPT_TYPE_INT, {.i64 = 44100}, 0, 0, FLAGS }, - { "r", "set sample rate", OFFSET(sample_rate) , AV_OPT_TYPE_INT, {.i64 = 44100}, 0, 0, FLAGS }, + { "sample_rate", "set sample rate", OFFSET(sample_rate) , AV_OPT_TYPE_INT, {.i64 = 44100}, 1, INT_MAX, FLAGS }, + { "r", "set sample rate", OFFSET(sample_rate) , AV_OPT_TYPE_INT, {.i64 = 44100}, 1, INT_MAX, FLAGS }, { "nb_samples", "set the number of samples per requested frame", OFFSET(nb_samples), AV_OPT_TYPE_INT, {.i64 = 1024}, 1, UINT16_MAX, FLAGS }, { "n", "set the number of samples per requested frame", OFFSET(nb_samples), AV_OPT_TYPE_INT, {.i64 = 1024}, 1, UINT16_MAX, FLAGS }, { "duration", "set the audio duration", OFFSET(duration), AV_OPT_TYPE_DURATION, {.i64 = -1}, -1, INT64_MAX, FLAGS }, -- 2.42.1 _______________________________________________ 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".