aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtspdec.c
diff options
context:
space:
mode:
authorAndriy Gelman <andriy.gelman@gmail.com>2020-10-12 16:36:07 -0400
committerAndriy Gelman <andriy.gelman@gmail.com>2020-11-21 10:13:36 -0500
commit9a70b6f5b84cf98cb7012ca3b5adc5f28f0f50bf (patch)
treee685b684e4612d5e6e7bceda50fbcbda19c73173 /libavformat/rtspdec.c
parent122fcf1f407b60baf7a0322b73798958ca6108eb (diff)
downloadffmpeg-9a70b6f5b84cf98cb7012ca3b5adc5f28f0f50bf.tar.gz
avformat/rtspdec: cosmetics
Make error check style consistent with rest of function. Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
Diffstat (limited to 'libavformat/rtspdec.c')
-rw-r--r--libavformat/rtspdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c
index 8a2abc8ee9..28b35d1993 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;
- }
}
}