[FFmpeg-devel] [PATCH v2 2/2] avformat/rtspdec: cosmetics

Andriy Gelman andriy.gelman at gmail.com
Sun Oct 11 23:32:06 EEST 2020


From: Andriy Gelman <andriy.gelman at gmail.com>

Make error check style consistent with rest of function.

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

diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c
index d6a903c026..a75af3d327 100644
--- a/libavformat/rtspdec.c
+++ b/libavformat/rtspdec.c
@@ -734,9 +734,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;
-            }
         }
     }
 
-- 
2.28.0



More information about the ffmpeg-devel mailing list