From patchwork Sun Oct 11 19:03:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andriy Gelman X-Patchwork-Id: 22853 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 D0C9044A47E for ; Sun, 11 Oct 2020 22:04:21 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B5D4868BAFD; Sun, 11 Oct 2020 22:04:21 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EAB1568BB09 for ; Sun, 11 Oct 2020 22:04:14 +0300 (EEST) Received: by mail-qt1-f196.google.com with SMTP id c13so1138483qtx.6 for ; Sun, 11 Oct 2020 12:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z1npKE14+1/h9dLQe5nMsuPPmADeNGUaODugNpf1mDE=; b=CljRvUKEexLqhpjBlqlNaXwXzZCMQMXRicy2gO4qSr8SL0grpNc2/ItaxpwYph63c1 Cya9SquxVybJ5PRm25FFy4hNaxwBU/ejIpbIl+Z3q7E83PmomkE3yJW7fp8vAPQeSJ1c V50rDqo0g0/Qt1Ls+IMtuWHh4zHz9Rc1AVxPm1H4jp6cd0tJH5Uur/0ocFYqdJziX+L2 E+G3mO81JmidnxT6IKWTdD6Z/SSJzhTTBoZ6DIcM5bEw4qAEufdv7WfL6baOfk1728Wq KHZk1X3MNvSYTRNTm2hZYcUZy3JUiepfCTQPCuKMa96KPAIVsMrv7kDRkUumfkedp7g+ I6yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=z1npKE14+1/h9dLQe5nMsuPPmADeNGUaODugNpf1mDE=; b=clez8X6s8BcBpmCfdKuzbJO7ZuaddW7a8MZL3YMJC8/IdGD7v0t+EVrSvwpxI8ufZW gID8m8WPHdzaUO2E+N2MJKkc05AY68I3c6hLK/WOiVtIQaM/I8SD2Nmi8D/0wQTBPVkh 3+YYd0tAva6i0ktVV4V9YpwT1Pp34RZJHZIGKlE1G2HFsLDmys080TNmDYcEC/N1qiRw 7Nb9V2jLGaiplkVHKZVv0O5/WGXGrMET2rpNZpOnXdquUMp6pgs66hhPqRXg3JiA4wK0 5zz30vUzTiTggdnswEUIsn/PzdYn4jCJC5x2Eyb0ZXzdf29zA/LrbiGZryNAte3Ec8IY hWjA== X-Gm-Message-State: AOAM530qFBpkX8ghnPKoTCu1eoJhnyTeldsUt7/5aQ3DmggxDmQnp6WM ISY7W8pkXD+r3JUP61ITOdb8KUuu7ys= X-Google-Smtp-Source: ABdhPJx4WaCSRWZ3pzqBsZPDWMw75OEGY2TZF0+XlPxsHKAx15dZvBtm4uDQyFpXTStMR8lmo0yY0A== X-Received: by 2002:aed:3fa2:: with SMTP id s31mr6916613qth.256.1602443053393; Sun, 11 Oct 2020 12:04:13 -0700 (PDT) Received: from localhost.localdomain (c-71-232-27-28.hsd1.ma.comcast.net. [71.232.27.28]) by smtp.gmail.com with ESMTPSA id b12sm10702930qtj.12.2020.10.11.12.04.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Oct 2020 12:04:13 -0700 (PDT) From: Andriy Gelman X-Google-Original-From: Andriy Gelman To: ffmpeg-devel@ffmpeg.org Date: Sun, 11 Oct 2020 15:03:30 -0400 Message-Id: <20201011190330.39991-3-andriy.gelman@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201011190330.39991-1-andriy.gelman@gmail.com> References: <20201011190330.39991-1-andriy.gelman@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] avformat/rtspdec: cosmetics 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: Andriy Gelman Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Andriy Gelman Make error check style consistent with rest of function. Signed-off-by: Andriy Gelman --- libavformat/rtspdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index 623f478585..6da408c95b 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -737,9 +737,9 @@ static int rtsp_read_header(AVFormatContext *s) if (rt->initial_pause) { /* do not start immediately */ } else { - if ((ret = rtsp_read_play(s)) < 0) { + ret = rtsp_read_play(s); + if (ret < 0) goto fail; - } } } return 0;