OSDN Git Service

Off-by-two in mpegts.c patch by (Wolfram Gloger <wmglo at dent dot med dot uni-muench...
authorWolfram Gloger <wmglo@dent.med.uni-muenchen.de>
Tue, 13 Apr 2004 13:33:02 +0000 (13:33 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Apr 2004 13:33:02 +0000 (13:33 +0000)
Originally committed as revision 3011 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mpegts.c

index 192507c..4a51b21 100644 (file)
@@ -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);