Message ID | 20221127170351.11477-21-anton@khirnov.net |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:999a:b0:a4:2148:650a with SMTP id ve26csp6960484pzb; Sun, 27 Nov 2022 09:08:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf4CyovXh8UXpFC2Mpx4LLihMIrqiI5XSvs2bVIh/vact49TuJc0KX8tWFOzTmQwcvTIqaVq X-Received: by 2002:aa7:c50b:0:b0:469:d36e:3213 with SMTP id o11-20020aa7c50b000000b00469d36e3213mr27983939edq.206.1669568890839; Sun, 27 Nov 2022 09:08:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669568890; cv=none; d=google.com; s=arc-20160816; b=Ye4W4asmkTyeqeT08VSzk8Td96ZA7TYo3u0O0/e9GYVVrng3zkEgIJGL7JmXqX2JEd IylDefN72VXiMeizPfkS+W39vWUU3RmS84z+sRD8kuCGg2wHdLtcyrJn2toE7lnwiwzh 8mKH8VP0d0xW36gIIl9COGjp0yjHc2e4BaMOIy2LWjlgxQ1xdST8JihfpU169PcymDip NHPDhKc4DfNz6XfziEiL31BtLb59HYnqPE/KqFHLdYBrst7DXwbelarHS+ue/VyXDHd8 aQ20QtAqYFYW3W63HRBuOEyk0WSdbLq262GDQh107pA62wXwCQW+xnfJJyyL9vfQfUji gWLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=ZEOaHE0iX35CKMlRZRwessRKPfOdJfKLrdQeA+ZtS1Y=; b=0i8R4F9LnM3hQ0gM/YinR77UfPMNHRHLPXWAAOGkiSpKJiy3RNNKwyOKOCa1IvGS3p ODMP6q0TTBqZpkJoDsVKaX8MBI0U0P1wHsitbuM0gH2Yk5yndIqZzs8/zlsJv2wfNpUs NJv9kht4BwoyA4iWGAXSVilisVkMShNKrrpn8fXEUB+dVdovDooWmFNWyczA5m2Nvlna 5JLAtoVf9knc4HafZ44DFZ3LfFD1oerNTE21kGF6Iy+BbHptsZHdSxpOASKAH0J5hHM+ 21KdfPPmIA4dFMKUfCD6kRsuilk+o7GfDeGhyXGVb4dT7qQzH+h9yNtQ+cwEEPI9rX23 Y1VA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a8-20020a05640213c800b00461d02225a3si7432374edx.448.2022.11.27.09.08.10; Sun, 27 Nov 2022 09:08:10 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4A29C68BBD1; Sun, 27 Nov 2022 19:06:13 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E384E6808AB for <ffmpeg-devel@ffmpeg.org>; Sun, 27 Nov 2022 19:06:01 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id A12E6240499 for <ffmpeg-devel@ffmpeg.org>; Sun, 27 Nov 2022 18:06:01 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id rPzE83YZ8o6y for <ffmpeg-devel@ffmpeg.org>; Sun, 27 Nov 2022 18:06:01 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id EDE13240D1F for <ffmpeg-devel@ffmpeg.org>; Sun, 27 Nov 2022 18:05:51 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id BCB9E3A25F1 for <ffmpeg-devel@ffmpeg.org>; Sun, 27 Nov 2022 18:05:46 +0100 (CET) From: Anton Khirnov <anton@khirnov.net> To: ffmpeg-devel@ffmpeg.org Date: Sun, 27 Nov 2022 18:03:42 +0100 Message-Id: <20221127170351.11477-21-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221127170351.11477-1-anton@khirnov.net> References: <20221127170351.11477-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 21/30] lavc/adxenc: rescale packet duration according to timebase X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: cQqJGRiejmE4 |
Series |
[FFmpeg-devel,01/30] lavc/libx264: factor out setting up the input frame
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavcodec/adxenc.c b/libavcodec/adxenc.c index 153c91b852..e1bf344b01 100644 --- a/libavcodec/adxenc.c +++ b/libavcodec/adxenc.c @@ -184,7 +184,7 @@ static int adx_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, } avpkt->pts = frame->pts; - avpkt->duration = frame->nb_samples; + avpkt->duration = ff_samples_to_time_base(avctx, frame->nb_samples); *got_packet_ptr = 1; return 0; }