From patchwork Tue Aug 18 20:55:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgQsWTc2No?= X-Patchwork-Id: 21722 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 5FDBC44B0A5 for ; Tue, 18 Aug 2020 23:55:58 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 413656881C8; Tue, 18 Aug 2020 23:55:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from ssq0.pkh.me (lstlambert-657-1-117-164.w92-154.abo.wanadoo.fr [92.154.28.164]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 95E57688103 for ; Tue, 18 Aug 2020 23:55:51 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pkh.me; s=selector1; t=1597784141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Esl6f/YuW1sBMKleANnCnE8TZB1qeldfIieWBEjfki8=; b=fmiQaIXsvgW2AAB54ZVym/00l8oPxr08PdIPF4QBJcSr1pbMn/2cxdJ6A1M7afBXAfnPtZ HdafX28t0UGk1TRVBHnbco5IBM9fQQWgyQjIlPwsY1AfP+2g9ufr5cO9X0v55ZGh8Nhl+C U2/9Y03Vv8Ui6D5yp36dXKvhiiF/Zvw= Received: from localhost (ssq0.pkh.me [local]) by ssq0.pkh.me (OpenSMTPD) with ESMTPA id ed7475bd; Tue, 18 Aug 2020 20:55:41 +0000 (UTC) From: =?utf-8?b?Q2zDqW1lbnQgQsWTc2No?= To: ffmpeg-devel@ffmpeg.org Date: Tue, 18 Aug 2020 22:55:35 +0200 Message-Id: <20200818205535.2974765-5-u@pkh.me> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200818205535.2974765-1-u@pkh.me> References: <20200818205535.2974765-1-u@pkh.me> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 5/5] avcodec/dvbsubdec: error out on unsupported coding methods X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Cc: =?utf-8?b?Q2zDqW1lbnQgQsWTc2No?= Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavcodec/dvbsubdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 1b75a2a46b..9bee33e4a2 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -1034,10 +1034,13 @@ static int dvbsub_parse_object_segment(AVCodecContext *avctx, } } else if (coding_method == 1) { avpriv_report_missing_feature(avctx, "coded as a string of characters"); + return AVERROR_PATCHWELCOME; } else if (coding_method == 2) { avpriv_report_missing_feature(avctx, "progressive coding of pixels"); + return AVERROR_PATCHWELCOME; } else { av_log(avctx, AV_LOG_ERROR, "Unknown object coding %d\n", coding_method); + return AVERROR_INVALIDDATA; } return 0;