[FFmpeg-cvslog] mpegts_read_header: goto fail instead of return directly

Michael Niedermayer git at videolan.org
Sun Jun 30 16:28:26 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun 30 15:42:12 2013 +0200| [b7c6685268d76436aead0aa9deb8716764ecb650] | committer: Michael Niedermayer

mpegts_read_header: goto fail instead of return directly

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b7c6685268d76436aead0aa9deb8716764ecb650
---

 libavformat/mpegts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 85b5146..288a84e 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) {



More information about the ffmpeg-cvslog mailing list