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 2DCEA43A43 for ; Wed, 5 Oct 2022 12:55:54 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B63C668BBA1; Wed, 5 Oct 2022 15:55:51 +0300 (EEST) Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CA0E668BA6D for ; Wed, 5 Oct 2022 15:55:44 +0300 (EEST) Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-13207a86076so15515275fac.3 for ; Wed, 05 Oct 2022 05:55:44 -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:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=A4lPY2EEncEFkh9AMBfUnO6nENjx3ZkUd4xCBC1S168=; b=ns8U5VTgllYjLMGGFx/ILrH9qvCaMu2mJTt4rG+Q2BzDbn08QCHZoG8ZmVheXcsBHI BHvd5hRzXWbJWKpzxfhJDtwvkicvTVLaL9SA7qGhluoTytv3oXYaaCFVSWJxIvra730i bmtNEvuoIOtquyXSSwinME5U3XSVQoXyLauWuYFI8saQ23eQDo3Ljyz7CK46cYyMm7hE +cIjtxbgNWCDo5SAsaKFMkvX0DwRP0x/nfucq0Qw54NGLMY/AIMvmrmuNB+P54vvExFh JMUqo3FAiPFAnk137cRFPpf+WxrAZwmP9w34qj3jHRhUm9wkYk6P9p1P8b5XoBc+lQ/G lhug== 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:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=A4lPY2EEncEFkh9AMBfUnO6nENjx3ZkUd4xCBC1S168=; b=FEa3ZWKVdbrpnRtqu4YuyiB3bL0IIDFx9R31DzLaHmHqQ2xGc1kYPafNsRRUDi6rlW rpAZVTC826nV97BsSbKl2Vuf4gAZ/7CbpF12+WTBSj4yzenWuL8T5tuSt3p20z7V8uMM KxTKFm/Q1775H1nN8Wcpznv+ujbo6jKYlNZqICiVSYzHis+AinlClnjYsnMhl/BbP9tp p4i6UzOo9QIX5tfrgg5P9mfL5v5BZuW/ZCtunYPPAUL7BkMNMGs60z0UQT+qICa9/EBV M7Z+ayCLpDEK/OFJdkCuwL3dF+HGr1aRXZqwZBb+L4B0Gbrysmy8a9zai8Ycu/g2ar+8 D0Pw== X-Gm-Message-State: ACrzQf21yoIu0Ykl4bLdWUkIl+Nwoe16OMbKISjf+X49t33o13QUeB6k zjvYNyciigeSAZvqpplMs/JAAH0XY3k= X-Google-Smtp-Source: AMsMyM6HYfAxs2njuUyfpUA1aSkKlgn237WaymNS5tPx8JI4q5xc3lbhtP3SFK3U27M95XubjZvxcg== X-Received: by 2002:a05:6870:5b84:b0:131:e064:747c with SMTP id em4-20020a0568705b8400b00131e064747cmr2498109oab.273.1664974542786; Wed, 05 Oct 2022 05:55:42 -0700 (PDT) Received: from [192.168.0.13] ([191.97.187.183]) by smtp.gmail.com with ESMTPSA id u36-20020a056870702400b0013125e6a60fsm4872801oae.58.2022.10.05.05.55.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Oct 2022 05:55:42 -0700 (PDT) Message-ID: <70ace089-0861-074a-778a-c46d6dcf3a27@gmail.com> Date: Wed, 5 Oct 2022 09:55:41 -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 To: ffmpeg-devel@ffmpeg.org References: <20220928013932.204723-1-haihao.xiang@intel.com> Content-Language: en-US From: James Almer In-Reply-To: <20220928013932.204723-1-haihao.xiang@intel.com> Subject: Re: [FFmpeg-devel] [PATCH v2] lavc/cbs_av1: restore CodedBitstreamAV1Context when AVERROR(ENOSPC) 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/27/2022 10:39 PM, Xiang, Haihao wrote: > From: Haihao Xiang > > The current pbc might be small for an obu frame, so a new pbc is > required then parse this obu frame again. Because > CodedBitstreamAV1Context has already been updated for this obu frame, we > need to restore CodedBitstreamAV1Context, otherwise > CodedBitstreamAV1Context doesn't match this obu frame when parsing obu > frame again, e.g. CodedBitstreamAV1Context.order_hint. > > $ ffmpeg -i input.ivf -c:v copy -f null - > [...] > [av1_frame_merge @ 0x558bc3d6f880] ref_order_hint[i] does not match > inferred value: 20, but should be 22. > [av1_frame_merge @ 0x558bc3d6f880] Failed to write unit 1 (type 6). > [av1_frame_merge @ 0x558bc3d6f880] Failed to write packet. > [obu @ 0x558bc3d6e040] av1_frame_merge filter failed to send output > packet > --- > libavcodec/cbs_av1.c | 64 ++++++++++++++++++++++++++++++++------------ > 1 file changed, 47 insertions(+), 17 deletions(-) Should be ok. _______________________________________________ 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".