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 A147A44A01 for ; Tue, 6 Dec 2022 08:27:47 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 529DB68BD2D; Tue, 6 Dec 2022 10:27:44 +0200 (EET) Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com [209.85.217.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 858D36803EE for ; Tue, 6 Dec 2022 10:27:37 +0200 (EET) Received: by mail-vs1-f50.google.com with SMTP id d185so13538550vsd.0 for ; Tue, 06 Dec 2022 00:27:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=212hj2cDeKT4z+x9w8urxSyU4umFFqsj0asDk6BTm2w=; b=eRRrbRzKOQKgspG5NWal1mwOMVnRNeVWtD/tEw8whe2u5C77pUQh+ceENCnwDVv9vm IbHz2cSWeFpoqWh2qq/rsqStnO9rwxH51zCdNfq6poeLgsPxQJa3reVL7UKF2RIkOFoZ gIlxfdJbALYYUDRXR0ROmRffZHg0g9cJvqFzetsYNSu6Fx5HXGOZdoplJux5FcqUoI5L 47JYlCcFGy26OKPip2zfUMkaDFhEwADE/62dGZq3NNt2qG1XXaIEC0FODMcBp52XbF2V pwGKJql0hPDHxeEL2s7U/gKw1F9dByoZInfiXxhcdT4ARR6atYu8gWa1nqxN0Y5Z/N/I EgPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=212hj2cDeKT4z+x9w8urxSyU4umFFqsj0asDk6BTm2w=; b=mRgIAY2jIu3lm4WyIDY/9oFt6aQfO0/ewS7EZ1y8goXMHMbwFVv4zPEMBp6qH/RCbm iprSJgc2OrsXj01YRBGkMbbKjGAGCLbNXg/U5mSlsPAhqINfcLMwRp8uEqIBy1Qj4pXe Btdyvt7gnDAYejMVzYEyg+SkT/lC/c3PzDLFOovxRBIxQOoFJfg1dEnziI/zF3yiwm9p pzyABiHHihNidD/nm1xHDME7Eevlwtt+vFdeRJx7pAYSSQKdF3o3AX1CC50tywGRfOof jSthPIjXeMGkiB+yl2rCQj4V5hPO9ePc9K3u4K61QorMSHhmgry/rVMyjkmlhBTctwAi OU9Q== X-Gm-Message-State: ANoB5plYFbe8LfDTloKj8X+Bqh0XnuPV5nS/86VKClOsafinJ57l923r oESijQMnohUAjDH+SQ+rQlBSM0u3nVnS2zD/YnyAUc8i X-Google-Smtp-Source: AA0mqf7LahvRjUC1WwmIYTkCV0aw8ip1EXQtn9tmfHw4ezXTvxYQ+ZGno4KZgLJzYxLzA1DwL3DxDqZwv/y9M+U/oHk= X-Received: by 2002:a05:6102:3751:b0:3af:b950:489d with SMTP id u17-20020a056102375100b003afb950489dmr49176042vst.36.1670315255264; Tue, 06 Dec 2022 00:27:35 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:612c:2428:b0:32a:5eaa:92e4 with HTTP; Tue, 6 Dec 2022 00:27:34 -0800 (PST) In-Reply-To: <20221206000308.3739-1-jamrial@gmail.com> References: <20221205212658.GZ3806951@pb2> <20221206000308.3739-1-jamrial@gmail.com> From: Paul B Mahol Date: Tue, 6 Dec 2022 09:27:34 +0100 Message-ID: To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH 2/6] avcodec/wmadec: clear pts when returning a frame during flush 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: On 12/6/22, James Almer wrote: > This will be needed for the following commit, after which ff_get_buffer() > will > stop setting frame->pts to AV_NOPTS_VALUE. This can not be put into generic code? > > Signed-off-by: James Almer > --- > This one goes before '[PATCH 2/5] Revert "avcodec/decode: use a packet list > to > store packet properties"' > > libavcodec/wmadec.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c > index 15d6fb42b2..bc18d18222 100644 > --- a/libavcodec/wmadec.c > +++ b/libavcodec/wmadec.c > @@ -845,6 +845,7 @@ static int wma_decode_superframe(AVCodecContext *avctx, > AVFrame *frame, > if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) > return ret; > > + frame->pts = AV_NOPTS_VALUE; > for (i = 0; i < s->avctx->ch_layout.nb_channels; i++) > memcpy(frame->extended_data[i], &s->frame_out[i][0], > frame->nb_samples * sizeof(s->frame_out[i][0])); > -- > 2.38.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". > _______________________________________________ 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".