]> git.sesse.net Git - ffmpeg/commitdiff
mpegts_read_header: goto fail instead of return directly
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 30 Jun 2013 13:42:12 +0000 (15:42 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 30 Jun 2013 14:23:42 +0000 (16:23 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegts.c

index 85b5146255f5d9aefba2d3f00bda5761b83f9880..288a84e13b9d505d5e31c506df658a5ee61c9c91 100644 (file)
@@ -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) {