mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
04f0002291
commit
d59a033a69
@ -835,6 +835,14 @@ static int mpegts_set_stream_info(AVStream *st, PESContext *pes,
|
|||||||
st->codec->codec_id = old_codec_id;
|
st->codec->codec_id = old_codec_id;
|
||||||
st->codec->codec_type = old_codec_type;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user