From patchwork Sun Nov 13 22:24:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Cadhalpun X-Patchwork-Id: 1408 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.90.1 with SMTP id o1csp774825vsb; Sun, 13 Nov 2016 14:24:56 -0800 (PST) X-Received: by 10.28.19.67 with SMTP id 64mr7500566wmt.111.1479075896497; Sun, 13 Nov 2016 14:24:56 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id ui11si20981833wjb.278.2016.11.13.14.24.55; Sun, 13 Nov 2016 14:24:56 -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; dkim=neutral (body hash did not verify) header.i=@googlemail.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; dmarc=fail (p=QUARANTINE dis=NONE) header.from=googlemail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 03A43689A05; Mon, 14 Nov 2016 00:24:54 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 43FB968987D for ; Mon, 14 Nov 2016 00:24:48 +0200 (EET) Received: by mail-wm0-f65.google.com with SMTP id a20so10821456wme.2 for ; Sun, 13 Nov 2016 14:24:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=lnaBNsJWGguGTlaCKkF0Da9LOGATjEb5y6cCbmOOgBE=; b=cIIi4gCGvpXvnWPy6YZowJzORIsbO5cX0QqtBkvmPI1yoYQ07Kk2INei0WWLYUJTjb bkXQlDedeZXq/ltD7CBpAypntyRNg20ldSUpTy4l/uS+Uov/xeBf1qeKe0ZrqYF6pnfG v2aRKnPGVCi2/M6DeVhmvQ14JpL3TRJdOaGPdSdeovRd4xhrR46+qHZrkIixy2WnA1HI Mbk79TxrzrioSFAsuejKTJczxGsEf2bjh6361GxTOaKwVgiSud7BQahSHcYMSYAB0//h hqhOnGxfNf5p0eIKLL9wRmYaOvdykIut8/MK3zdHFjLGkP8gK/CUd87aN5cjyLUvyBe0 dubQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=lnaBNsJWGguGTlaCKkF0Da9LOGATjEb5y6cCbmOOgBE=; b=NWt044u0/6mkGsDPBgFh93HRy7V2zqV3i4NLrP0ow54+5NEXl4RHvleeSI9230F3aS 70NLCLSmC7T3wf+DNcRYi8vJXiDZnjmgOXwMh8fvxsMSwX8yzVLcdsIXdnh7zSR3C9tV l1KAAdKHVqGrYKEJl4s9DsJph9yAePlJTPnY6bXuk6EQvPEX6ONmvvlkExxSEhXEjBrP B/T2p23+SCqitKmRFVUajMS3PQfpbDvV45Sc+tSQdJrsfbylGPsYiBF8WT4j8SEF+VeZ gRLcsi7SI7tWQJNhU6d+MvK9ey067t6s0X3GRbvpKhPkpbPIgi/JGqHsfs6+77vPO2VR hGeg== X-Gm-Message-State: ABUngveYbBHEMNtmik8i2TucnGiZkLaUKjry0b6y7p1WFyZsMCV4Ptvurf57kWR7m0LqYw== X-Received: by 10.28.133.144 with SMTP id h138mr8622893wmd.12.1479075887676; Sun, 13 Nov 2016 14:24:47 -0800 (PST) Received: from [192.168.2.21] (p5B072E6F.dip0.t-ipconnect.de. [91.7.46.111]) by smtp.googlemail.com with ESMTPSA id l67sm43241434wmf.0.2016.11.13.14.24.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Nov 2016 14:24:46 -0800 (PST) From: Andreas Cadhalpun X-Google-Original-From: Andreas Cadhalpun To: FFmpeg development discussions and patches , libav development Message-ID: <5e79953b-5f6e-51ea-927a-84bbe87042df@googlemail.com> Date: Sun, 13 Nov 2016 23:24:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] libschroedingerdec: don't produce empty frames 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" They are not valid and can cause problems/crashes for API users. Signed-off-by: Andreas Cadhalpun --- libavcodec/libschroedingerdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libschroedingerdec.c b/libavcodec/libschroedingerdec.c index c9930c7..1e392b3 100644 --- a/libavcodec/libschroedingerdec.c +++ b/libavcodec/libschroedingerdec.c @@ -307,7 +307,7 @@ static int libschroedinger_decode_frame(AVCodecContext *avctx, /* Grab next frame to be returned from the top of the queue. */ framewithpts = ff_schro_queue_pop(&p_schro_params->dec_frame_queue); - if (framewithpts && framewithpts->frame) { + if (framewithpts && framewithpts->frame && framewithpts->frame->components[0].stride) { int ret; if ((ret = ff_get_buffer(avctx, avframe, 0)) < 0)