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 CE7C243BCE for ; Mon, 22 Aug 2022 03:08:08 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id ABA1768B9AB; Mon, 22 Aug 2022 06:08:05 +0300 (EEST) Received: from mail-vs1-f45.google.com (mail-vs1-f45.google.com [209.85.217.45]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 81BA668B6DC for ; Mon, 22 Aug 2022 06:07:59 +0300 (EEST) Received: by mail-vs1-f45.google.com with SMTP id k10so4768709vsr.4 for ; Sun, 21 Aug 2022 20:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc; bh=hXw/M1+PrPSKWVqcisFDmC3RCWPTuklLCzJuZepeXbQ=; b=opAtIkGNunmpNgeE6f51D+zJxYFC4YaFrPK7Rta8ZN+zvDdBuxEehcP1EgboM+f8q4 mU+qrmGiZgfBoJ4Xt3aRy6QhZjGZcwEWIwaZ6DKnYSWr6Ry2pJ+ko+imXj9BqM5MwiYh 4WqtQ8G00TVItIoPPgt+XBrLfV4MEasx0FfgAEzS11UB74m/VZ3i4R/11iUSXccMsU+k IXirJmf0Au3ZXnX5wqt0PEGFyja9BFQWjMWXKkREB1h2shkHBJ6+BrZH5Ho6+M0rQrzj aiMwppR8oX/5S/cZt+mpC2DRjIgbvhXeTxPOB2SOcFA7MLUnIsWIYvjwbSsGjtaV2plM Gdfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc; bh=hXw/M1+PrPSKWVqcisFDmC3RCWPTuklLCzJuZepeXbQ=; b=7Zxqy+noeWXuPjvb+rqPqtwsPfUi0xU9l287xwJionLzEfw1OfKjdR0VfedxVElJsD cD7/Sws+LdFmTbAAOIbzYGEl6ByCputWLfKO5Mm6sHt5k7DqjzLpOWymUWWIgWgLqLYs bIpfIP//0iVXgegEB7FazKe3ZG5/ZqzB/3gorFC8sJ9mLvSZxpjQTCVqFMQQ/UxoBzjv 6nGdgi5BsSIei7TAaLSSDVJaFa9hiohvlqFqJCyJZj4guKUFUMrUDrBcGJyFhHnWUf/W BX9QHbiQKtwRyonUt4ZMkyxdSWqEtOllG/sjtUV/FZohc8BWWAxlVmjcDCbkuNEwKlZA qcKg== X-Gm-Message-State: ACgBeo0cLnv+3PfUXTeroQuizObzTUv68/jtX2PQiJy7eX/PLrfulj/+ kIM7YXp717J3Q6jAjJqmJI0p6slSTdI= X-Google-Smtp-Source: AA6agR62nApbQy7jrks1q1+HXq7ZUO94UqkftsNBz1LYIrfdSOiqgwBdRo3j5EyZ1CzuZ3U/N6Pe5Q== X-Received: by 2002:a05:6102:2431:b0:38a:d0b7:ffa1 with SMTP id l17-20020a056102243100b0038ad0b7ffa1mr6778980vsi.34.1661137676745; Sun, 21 Aug 2022 20:07:56 -0700 (PDT) Received: from localhost.localdomain ([191.97.187.183]) by smtp.gmail.com with ESMTPSA id df38-20020a056102442600b0039042114eefsm3990456vsb.26.2022.08.21.20.07.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 20:07:56 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Mon, 22 Aug 2022 00:06:49 -0300 Message-Id: <20220822030649.2607-1-jamrial@gmail.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avcodec/libsvtav1: properly initialize the flush EbBufferHeaderType struct 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: Should fix ticket #9834 Signed-off-by: James Almer --- libavcodec/libsvtav1.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c index 234c24ca7a..4c403a98d4 100644 --- a/libavcodec/libsvtav1.c +++ b/libavcodec/libsvtav1.c @@ -424,11 +424,8 @@ static int eb_send_frame(AVCodecContext *avctx, const AVFrame *frame) if (svt_enc->eos_flag == EOS_SENT) return 0; - headerPtrLast.n_alloc_len = 0; - headerPtrLast.n_filled_len = 0; - headerPtrLast.n_tick_count = 0; - headerPtrLast.p_app_private = NULL; - headerPtrLast.p_buffer = NULL; + memset(&headerPtrLast, 0, sizeof(headerPtrLast)); + headerPtrLast.pic_type = EB_AV1_INVALID_PICTURE; headerPtrLast.flags = EB_BUFFERFLAG_EOS; svt_av1_enc_send_picture(svt_enc->svt_handle, &headerPtrLast); -- 2.37.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".