diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-04 23:46:21 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-12 13:59:00 +0200 |
commit | d59a033a69c4856c664b546a7e2905f733dfb544 (patch) | |
tree | 45cdb9004c6b613187fa2b71a82842e287b932e8 /libavformat | |
parent | 04f00022910c8b468fcf72c1f12ac410d3588802 (diff) | |
download | ffmpeg-d59a033a69c4856c664b546a7e2905f733dfb544.tar.gz |
avformat/mpegts: recognizes and export private streams
Based on patch by Wolfgang Lorenz <wl-chmw@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mpegts.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index eff68197b8..84946e3cfd 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -835,6 +835,14 @@ static int mpegts_set_stream_info(AVStream *st, PESContext *pes, st->codec->codec_id = old_codec_id; st->codec->codec_type = old_codec_type; } + if ((st->codec->codec_id == AV_CODEC_ID_NONE || + (st->request_probe > 0 && st->request_probe < AVPROBE_SCORE_STREAM_RETRY / 5)) && + !avcodec_is_open(st->codec) && + stream_type == 6) { + st->codec->codec_type = AVMEDIA_TYPE_DATA; + st->codec->codec_id = AV_CODEC_ID_BIN_DATA; + st->request_probe = AVPROBE_SCORE_STREAM_RETRY / 5; + } return 0; } |