ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Thu Jun 4 23:46:21 2015 +0200| [d59a033a69c4856c664b546a7e2905f733dfb544] | committer: Michael Niedermayer
avformat/mpegts: recognizes and export private streams Based on patch by Wolfgang Lorenz <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d59a033a69c4856c664b546a7e2905f733dfb544 --- libavformat/mpegts.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index eff6819..84946e3 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; } _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
