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 1EAEB44256 for ; Tue, 4 Oct 2022 01:59:02 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 71DA068BB1F; Tue, 4 Oct 2022 04:58:59 +0300 (EEST) Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0E75568BA39 for ; Tue, 4 Oct 2022 04:58:53 +0300 (EEST) Received: by mail-vs1-f48.google.com with SMTP id p11so4676218vsr.7 for ; Mon, 03 Oct 2022 18:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=KQcY/hl+Gt7DBcNDzyHmd+oWZYnaN4QTul96I3b5NTI=; b=IpIfQj98jvVf/XI1u7MbxV9zHUU4iDKubVjlwRoeJH7K8MQ/fJtILVXpmUnHGGHONr jxQ3eyPJNXvPSXU68tNiU60+s6pSnEczDCYCnT5EP01E4RdV/k9J8AhZI8w+arXQQI22 RBQ2uM2lWE45p/3WyR/al6TW1CMF5Cd3n3AWpdFeHqPK3KQDr+QVWT4k9fhDAZXNW14W 3CW3zEnDEQqB8KU3p2YQEovfK4jMmiOB7nIUUunKk05xr9IgbXelHGWw0X5ccXI6guyk cYVowut8nUiS0UvDnh2jYAAO9UXalmSi0h5LoGQ9tHrCvqPjeN/cZ0BF9DReE34n1xCr lTSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=KQcY/hl+Gt7DBcNDzyHmd+oWZYnaN4QTul96I3b5NTI=; b=okRSyT5qQbZDfkadrzCyj/mrLBHIi8bJr+lvb9aMp213cIlP2OGUSajtJ0NTBawjd0 zfcIstVNjzWwdtgk2RfdW4FhCx6bmphFcIv9VU36YGV2otJfN/9IT1BtZy0CXYDwPHc5 hq+b3iVrSY8NYaGlCgsvd277pWnd7JFQzeT8358zwUaJT4LeVnhsaPMF1bFpBDFSXCSf 7YbmSsZcQD6q6psyJizt5jcYFucOii/HEAETPrc9hI+nmduGxrv/KEvSJ9vZqSJaLhuU KL/h6lXs6J7s8u/P7N2qk2yhOAHwcE3pCRDC/fAowlS5ipr3/+8DzJDqh4VLM69kFKP2 dwnw== X-Gm-Message-State: ACrzQf0XO4mhgmBW3gs5QSPDd3rotfgDxTrmC+g13eazeGu9phST9uVX j6Ai9FbTs4R5CYYh6A3I9Z3DucT3qGY= X-Google-Smtp-Source: AMsMyM7cblB42RLO1NPEBCezf50m8akwZXmavN3SW/Gqb4oUCagjjf6Rl4OGNy1cxOM13mN0bEpRdA== X-Received: by 2002:a05:6102:f87:b0:398:8bc4:7674 with SMTP id e7-20020a0561020f8700b003988bc47674mr9985100vsv.34.1664848731141; Mon, 03 Oct 2022 18:58:51 -0700 (PDT) Received: from [192.168.0.13] ([191.97.187.183]) by smtp.gmail.com with ESMTPSA id m83-20020a1fa356000000b003aa6e234181sm2830940vke.19.2022.10.03.18.58.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Oct 2022 18:58:50 -0700 (PDT) Message-ID: <1cf01abc-d92e-e62a-c2f9-45213bbd1ff1@gmail.com> Date: Mon, 3 Oct 2022 22:58:49 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20220830014653.2477-1-jamrial@gmail.com> <20220905010955.173-1-jamrial@gmail.com> <166393837176.26932.2149159917577069121@lain.khirnov.net> <011a0421-e70a-37b3-b9f8-e9015f3622e7@gmail.com> <166437954153.22057.8153803257117804608@lain.khirnov.net> From: James Almer In-Reply-To: <166437954153.22057.8153803257117804608@lain.khirnov.net> Subject: Re: [FFmpeg-devel] [PATCH] avcodec: add a bsf to reorder DTS into PTS 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: On 9/28/2022 12:39 PM, Anton Khirnov wrote: > Quoting James Almer (2022-09-23 16:27:32) >> On 9/23/2022 10:06 AM, Anton Khirnov wrote: >>>> +static int dts2pts_filter(AVBSFContext *ctx, AVPacket *out) >>>> +{ >>>> + DTS2PTSContext *s = ctx->priv_data; >>>> + DTS2PTSNode *poc_node = NULL, *next[2] = { NULL, NULL }; >>>> + DTS2PTSFrame frame; >>>> + int ret; >>>> + >>>> + // Fill up the FIFO and POC tree >>>> + if (!s->eof && av_fifo_can_write(s->fifo)) { >>> >>> More than one packet can be available, so this should probably be a >>> loop. >> >> What do you mean? AVBSFContext can contain at most one buffered packet. > > I'd prefer if filters didn't make any such assumptions. Will make that change and apply. _______________________________________________ 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".