Browse Source

mpegts: fix demuxing PES private stream 2

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>
tags/n2.8
Petri Hintukainen Michael Niedermayer 10 years ago
parent
commit
757cb0f286
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/mpegts.c

+ 1
- 0
libavformat/mpegts.c View 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;
}


Loading…
Cancel
Save