diff mbox series

[FFmpeg-devel,3/3] avformat/rtspdec: cosmetics

Message ID 20201011190330.39991-3-andriy.gelman@gmail.com
State Superseded
Headers show
Series [FFmpeg-devel,1/3] avformat/rtspdec: set dangling pointers to NULL | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/PPC64_make warning Make failed
andriy/x86_make_fate success Make fate finished

Commit Message

Andriy Gelman Oct. 11, 2020, 7:03 p.m. UTC
From: Andriy Gelman <andriy.gelman@gmail.com>

Make error check style consistent with rest of function.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
---
 libavformat/rtspdec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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;