]> git.sesse.net Git - ffmpeg/commitdiff
avformat/rtspdec: cosmetics
authorAndriy Gelman <andriy.gelman@gmail.com>
Mon, 12 Oct 2020 20:36:07 +0000 (16:36 -0400)
committerAndriy Gelman <andriy.gelman@gmail.com>
Sat, 21 Nov 2020 15:13:36 +0000 (10:13 -0500)
Make error check style consistent with rest of function.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
libavformat/rtspdec.c

index 8a2abc8ee92efd5d5290adb91ff4f6073752bccc..28b35d1993e0382b28101562589cb74148b8c368 100644 (file)
@@ -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;
-            }
         }
     }