mpegts: fix demuxing PES private stream 2
authorPetri Hintukainen <phintuka@gmail.com>
Mon, 31 Aug 2015 09:06:16 +0000 (12:06 +0300)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 1 Sep 2015 12:35:32 +0000 (14:35 +0200)
PES header size is 6 bytes (00 00 01 bf XX XX), not 0.
BluRay text subtitles use private stream 2.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mpegts.c

index 3500fc1..7f199d4 100644 (file)
@@ -1054,6 +1054,7 @@ static int mpegts_push_data(MpegTSFilter *filter,
                             pes->st->request_probe = 1;
                         }
                     } else {
+                        pes->pes_header_size = 6;
                         pes->state      = MPEGTS_PAYLOAD;
                         pes->data_index = 0;
                     }