Based on patch by Wolfgang Lorenz <wl-c...@gmx.de> Signed-off-by: Michael Niedermayer <michae...@gmx.at> --- libavformat/mpegts.c | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index eff6819..7b35d7f 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -835,6 +835,13 @@ 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 == 1) && + !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 = 1; + } return 0; } -- 1.7.9.5 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel