ffmpeg | branch: master | Petri Hintukainen <phint...@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 <mich...@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;
                     }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to