Message ID | 20201011203206.45261-2-andriy.gelman@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | [FFmpeg-devel,v2,1/2] avformat/rtspdec: fix mem leaks on init fail | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | warning | Make failed |
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; - } } }