From b7c6685268d76436aead0aa9deb8716764ecb650 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 30 Jun 2013 15:42:12 +0200 Subject: [PATCH] mpegts_read_header: goto fail instead of return directly Signed-off-by: Michael Niedermayer --- libavformat/mpegts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 85b5146255..288a84e13b 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2050,7 +2050,7 @@ static int mpegts_read_header(AVFormatContext *s) for(;;) { ret = read_packet(s, packet, ts->raw_packet_size); if (ret < 0) - return -1; + goto fail; pid = AV_RB16(packet + 1) & 0x1fff; if ((pcr_pid == -1 || pcr_pid == pid) && parse_pcr(&pcr_h, &pcr_l, packet) == 0) {