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 D795742B79 for ; Wed, 27 Apr 2022 13:35:38 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8EF1F68B425; Wed, 27 Apr 2022 16:35:37 +0300 (EEST) Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 700BB68B3F5 for ; Wed, 27 Apr 2022 16:35:31 +0300 (EEST) Received: by mail-ed1-f44.google.com with SMTP id d6so1964112ede.8 for ; Wed, 27 Apr 2022 06:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject:to :content-transfer-encoding; bh=gZclkIT3RGQlS5RfBrbeVcIfKPbYH/qLa8NBVsGg1G4=; b=Bu+4kMBVZrHt/aAK4HnwOFBKntin79don935PZa/Okg9IYgFK96Pa44QdGD0yLeQXv DDm83X2f5KJqZO5/6tRbk9WTQUh9u0hNFETgzlL6Fbyn07z0Hd2zKoeSGo+6HAj+Ag1Q wCzadzWuvXaY58dFm/XReIzfPedK6Gem3/5t33dSk9BRtS33QnebCZb1WPWDoREoEygE AE177T4Cedc3+QJKJCzYpSPSRd7ApXrZjTi/NgNzU6XZ1WSA82t/eEreq2OCZvnp6y6/ T0UpMRkikIxP5IjgIGxDfCBAn/OckFGspwGQKawb0F61yAuaF/Jwcvj3CcKHnC4P/Bdh jQjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:content-transfer-encoding; bh=gZclkIT3RGQlS5RfBrbeVcIfKPbYH/qLa8NBVsGg1G4=; b=VcAunmbFKiwPAdfp8SxQwZQqe2VruTyR/lrZqxi+G+rUKxS9Vs75PTKohIrX52m/2N 9klp9CgVvtqpfYw9MzM2ql9HZiqzJtkJtxfZWjYzW4Emc+MPGQMbOVoVX7mCPqY7nuW6 nwG+n1G988HvA01QQbv9BzjN3htgFMZ0KAGSCr6WRUmkzsEtjKkz7IX1IaUov3mF5M0L KYrd4e2QmkEvt/l5xowueOKVF1QIzdi5Bt4Dzwn9Fqp1IWkdQNMC2Miii7sPjUCOV1n7 jwpVTVqy+BE3f4hOQzneaArZqUpaiNjErw4M0YKxbRoEgcQzQDUHm48Nnq+lMmLh3qhd mNng== X-Gm-Message-State: AOAM531Kp/w/V8yOBBufS++qcBkRBpgZIn7zBSY1c3MYnCUHRlBA7AKd 9teTNxMvu/0MwOLnZriLNqVh4/ZKYw1Vxw== X-Google-Smtp-Source: ABdhPJydLm3/5szMu2pwCFcePE9zYlJ64ZIQqLvJVmMTjqhwlMy8bk6iov1p0gLc6dNVyKZ5ySLKEw== X-Received: by 2002:a05:6402:5255:b0:425:e40a:c927 with SMTP id t21-20020a056402525500b00425e40ac927mr17378671edd.308.1651066530935; Wed, 27 Apr 2022 06:35:30 -0700 (PDT) Received: from [172.16.222.185] (195-192-17-253.stat.cablelink.at. [195.192.17.253]) by smtp.gmail.com with ESMTPSA id bo14-20020a170906d04e00b006ce98d9c3e3sm6782372ejb.194.2022.04.27.06.35.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Apr 2022 06:35:30 -0700 (PDT) Message-ID: <72590313-f19e-8154-c596-c5b5efc2b82e@gmail.com> Date: Wed, 27 Apr 2022 15:35:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 From: Andreas Unterweger To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH v3 2/2] doc/examples/transcode_aac: Set decoder packet timebase 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Previously, the default timebase caused two warnings during decoding about not being able to update timestamps for skipped and discarded samples, respectively. Signed-off-by: Andreas Unterweger --- doc/examples/transcode_aac.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/examples/transcode_aac.c b/doc/examples/transcode_aac.c index c9b93f6439..6197369756 100644 --- a/doc/examples/transcode_aac.c +++ b/doc/examples/transcode_aac.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2018 Andreas Unterweger + * Copyright (c) 2013-2022 Andreas Unterweger * * This file is part of FFmpeg. * @@ -120,6 +120,10 @@ static int open_input_file(const char *filename, avformat_close_input(input_format_context); return error; } + + /* Set the packet timebase for the decoder. The input file's sample + * rate is used as the denominator for simplicity. */ + avctx->pkt_timebase = (AVRational) { 1, avctx->sample_rate }; /* Save the decoder context for easier access later. */ *input_codec_context = avctx; -- 2.30.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".