[FFmpeg-cvslog] mpegts: fix demuxing PES private stream 2
Petri Hintukainen
git at videolan.org
Tue Sep 1 14:57:28 CEST 2015
ffmpeg | branch: master | Petri Hintukainen <phintuka at gmail.com> | Mon Aug 31 12:06:16 2015 +0300| [757cb0f286b5497465207c06e18859bb40d079c5] | committer: Michael Niedermayer
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 at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=757cb0f286b5497465207c06e18859bb40d079c5
---
libavformat/mpegts.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 3500fc1..7f199d4 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list