aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-30 15:42:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-30 16:23:42 +0200
commitb7c6685268d76436aead0aa9deb8716764ecb650 (patch)
tree5ffd1185a7f4bc9c11d08c3646c8a6d9dc0f35e2 /libavformat/mpegts.c
parentafddf0d9105d2e4f7e6abfab2613fd7ba5747daf (diff)
downloadffmpeg-b7c6685268d76436aead0aa9deb8716764ecb650.tar.gz
mpegts_read_header: goto fail instead of return directly
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c2
1 files changed, 1 insertions, 1 deletions
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) {