From 550f0a9b07f9c70036e4067f8ed85545423a1576 Mon Sep 17 00:00:00 2001
From: Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
Date: Tue, 13 Apr 2004 13:33:02 +0000
Subject: Off-by-two in mpegts.c patch by (Wolfram Gloger <wmglo at dent dot
 med dot uni-muenchen dot de>)

Originally committed as revision 3011 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/mpegts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'libavformat')

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 192507c44f..4a51b21c45 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1467,7 +1467,7 @@ int mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt,
         if (len < TS_PACKET_SIZE)
             return -1;
         if (buf[0] != 0x47) {
-            buf--;
+            buf++;
             len--;
         } else {
             handle_packet(ts, buf);
-- 
cgit v1.2.3