From patchwork Sun Nov 27 17:03:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 39537 Delivered-To: andriy.gelman@gmail.com Received: by 2002:a05:6a11:561f:b0:33d:fc04:f431 with SMTP id rr31csp8295080pxb; Sun, 27 Nov 2022 09:08:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf59vSND9D1IQT1GyeUc+5iNHyKHUsBNfr0VxXKHvZI/AA5eqQxP6qPPS3sRIP4O+N+8TEWl X-Received: by 2002:a05:6402:e04:b0:469:e6ef:9164 with SMTP id h4-20020a0564020e0400b00469e6ef9164mr26350722edh.185.1669568921116; Sun, 27 Nov 2022 09:08:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669568921; cv=none; d=google.com; s=arc-20160816; b=qVWShNaizHkousrzTW+cNd/4bvIyj5RTY9jJjxrT8eBzzlMP4e/PyhBtYgsrCNj3YV HAv6rAludMbUBcsu4gxVnCcPuiZW+IBzqoNg4/LEIjFGweXkRvMtDVq25Upp8qxtDZ5q mewp9h7Gb/0P59m6heyhagy23lsPUwnXw989OuP8plwHhHFxFkg96V18oP6E+/kOhR2v ijC/OOTploRIVNiTpub/czK9WyX3p2gRRihN/m/dm9gjQHEWoAkhGT53vxAG90DuWv4v criOofSew02sIxazrexi0VNK+tTHhTfKo1LOK4KdlDZTWMIiYbzPzutAIy83GRA8qgz9 MELA== 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=eAFdHO17ERdLv0Z+ZK8kN1xchq3+GODxLLbRCcKNGPQ=; b=sJvYMiA+Xev/e0lGQ4WsD0K1+jIXZoVtAlJ7P2B8NCzUmSz1iF+04p3Yji1rHZ/Rqd w5R0VtIcWK+RJdFrMPoQTZ+c8dyG8L6GXCODgFZvOZZ6/WS/jaQ2W/W1D+d9ejoLMpHU Ben+txKr+PRHCVyO3f7WdNYNuh7IG9WHsoxOaTzx3CjJVvfaMkpXbTqxUOJllCFlvFaB yc6eExXYcDczUFqX4Ah5t8Qp8vsv8bQFNBSr8pD7DDIAwmOfQRrBy9fNi5G44a2TFMHT 9FT7pcJVv9PlRpLqwFJz5EtBszcG+I4SvRVoPdivpQv2MQEuD9BmHd7XkPfv/iB04jrL Ww8Q== 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: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id sg40-20020a170907a42800b007825337afeesi7788956ejc.273.2022.11.27.09.08.40; Sun, 27 Nov 2022 09:08:41 -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 ECD4868BC14; Sun, 27 Nov 2022 19:06:16 +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 90F2C68BA08 for ; Sun, 27 Nov 2022 19:05:58 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 024DF2406C7 for ; Sun, 27 Nov 2022 18:05:55 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 47_KJib1RLmI for ; Sun, 27 Nov 2022 18:05:54 +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 982232405F9 for ; 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 5056B3A25C3 for ; Sun, 27 Nov 2022 18:05:46 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Sun, 27 Nov 2022 18:03:33 +0100 Message-Id: <20221127170351.11477-12-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 12/30] lavc/libx264: print an error on invalid opaque pointer 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: GpRfQ+Zo38Mn Content-Length: 856 --- libavcodec/libx264.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index b680e2098e..e8ca3d896b 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -596,6 +596,8 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, wallclock = out_opaque->wallclock; } else { // Unexpected opaque pointer on picture output + av_log(ctx, AV_LOG_ERROR, "Unexpected opaque pointer; " + "this is a bug, please report it.\n"); ctx->reordered_opaque = 0; }