From patchwork Mon Oct 12 20:36:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andriy Gelman X-Patchwork-Id: 22876 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 9BC8744AFE6 for ; Mon, 12 Oct 2020 23:36:51 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8284168BBD1; Mon, 12 Oct 2020 23:36:51 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk1-f194.google.com (mail-qk1-f194.google.com [209.85.222.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A68E168BBAC for ; Mon, 12 Oct 2020 23:36:45 +0300 (EEST) Received: by mail-qk1-f194.google.com with SMTP id s4so18871795qkf.7 for ; Mon, 12 Oct 2020 13:36:45 -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=49wNBvML9RyRIacGSND+wUvYr+PE4KwoyP88Fzp+Nng=; b=I9JAi2ltcss3O9ATTS7447qFqF6hJhB1Jj44pno/mahbz7PcXMTh5G0ssdUW02EJir 7POh4g35XIXtEJxqMsONUgl0o4Qm7YAb7uECzlNJnK8Jo9T5VRiHp+avQbnYm1nsnHlN 6mSRFXwXAWu2jn2o3vRmj/cnM7qNO/7sMDgWzUM5KyV87JaZciWAocOSVXKizaBfTxje EtqnHwiFQZc1ot/Y5TCpq9ucvvpA8j4x59QC/wNiFpVfny7LkbJi0s9gHEvjIOOEgZxg t6isrh4f2ZMMhuNxlxu8RGW0XfSNHsMHGpU/BgeqUSE02WOHjsvinE2+poIgMebOcycn +SWQ== 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=49wNBvML9RyRIacGSND+wUvYr+PE4KwoyP88Fzp+Nng=; b=oUKPCMoJTFTcxUfYEfPs2gciIpDa9nWtOn4fUXsp5IF0+06ftpwDKhSw3r3OLEq3gb Bx8L2wEButpOnnjgu3nRjowjPJnkueLQoa5JpNHhqZ2TqAPF5qD00IOUBITEIHFiTa84 5B47KQPS723ovxjNdjQ7wFGjlnusu6py5l0NZHsju/cwCqmAorOoADTn2A10hnAHbRM6 SGJA/udTjcouRpQmm+6JtDMTtkXR/47dfxS5/eTgJYtC9p/3fl37Zc9YHG4T3fmtyTBl um2DknwT7N7sEhFftlOI8l4hVrwjaeNa5nuZ6IFDIu5CPula7GRBNZDH2lSWefSjGVt+ B/1g== X-Gm-Message-State: AOAM532spH66duHj3/P3Eq9WO8LwdOJAljzVQjffrcwec0IJTAGdkzWk 3J3UNQQSLF/5tvlhw28vTNzsv/JmrWI= X-Google-Smtp-Source: ABdhPJxIfkDGD4B6V277jRGdDBf7XELXJvTVCaQVWpOvZKcraUnmB9+ZwTUlI0NYQ47D4VgcWWW6hA== X-Received: by 2002:a37:a81:: with SMTP id 123mr11522828qkk.487.1602535004239; Mon, 12 Oct 2020 13:36:44 -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 p38sm13521826qtb.20.2020.10.12.13.36.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2020 13:36:43 -0700 (PDT) From: Andriy Gelman X-Google-Original-From: Andriy Gelman To: ffmpeg-devel@ffmpeg.org Date: Mon, 12 Oct 2020 16:36:07 -0400 Message-Id: <20201012203609.41647-4-andriy.gelman@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201012203609.41647-1-andriy.gelman@gmail.com> References: <20201012203609.41647-1-andriy.gelman@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 4/6] 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. --- libavformat/rtspdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index 7c617837ca..b9fbc45190 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -744,9 +744,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; - } } }