aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@gmail.com>2015-08-31 12:06:16 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-01 14:35:32 +0200
commit757cb0f286b5497465207c06e18859bb40d079c5 (patch)
tree7692fd77fe055422a1334c82ac5a9bbd95e4c4a5 /libavformat
parentd79c20000052dea38d2c997ac5a8ee61a168eb8e (diff)
downloadffmpeg-757cb0f286b5497465207c06e18859bb40d079c5.tar.gz
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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mpegts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 3500fc197a..7f199d4ffc 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;
}