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);