diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-06 21:43:01 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-06-06 21:56:51 +0200 |
commit | a5eb70ad9569c62158b4b2d18f2143db791f7d27 (patch) | |
tree | 7dbd15095858be312b71da366dbde199714e5081 | |
parent | 9511a0895dda67a770c6403f1d5c236d86783ac7 (diff) | |
download | ffmpeg-a5eb70ad9569c62158b4b2d18f2143db791f7d27.tar.gz |
avformat/mpegts: Do not trust BSSD descriptor, it is sometimes not an S302M stream
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/mpegts.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 203d79b2a8..d38b8af1b7 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -1804,8 +1804,11 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type case 0x05: /* registration descriptor */ st->codecpar->codec_tag = bytestream_get_le32(pp); av_log(fc, AV_LOG_TRACE, "reg_desc=%.4s\n", (char *)&st->codecpar->codec_tag); - if (st->codecpar->codec_id == AV_CODEC_ID_NONE || st->request_probe > 0) + if (st->codecpar->codec_id == AV_CODEC_ID_NONE || st->request_probe > 0) { mpegts_find_stream_type(st, st->codecpar->codec_tag, REGD_types); + if (st->codecpar->codec_tag == MKTAG('B', 'S', 'S', 'D')) + st->request_probe = 50; + } break; case 0x52: /* stream identifier descriptor */ st->stream_identifier = 1 + get8(pp, desc_end); |