mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avformat/mpegts: Only start probing data streams within probe_packets
Fixes assertion failure Fixes: 4321db8ac331f5967ebfbfe80ce5eb78/signal_sigabrt_7ffff6ae7cc9_7213_0d6457b9d6897fa7c78507fa5de53510.ts Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
93f30f825c
commit
3692d859f4
@ -841,6 +841,7 @@ static int mpegts_set_stream_info(AVStream *st, PESContext *pes,
|
||||
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) &&
|
||||
st->probe_packets > 0 &&
|
||||
stream_type == STREAM_TYPE_PRIVATE_DATA) {
|
||||
st->codec->codec_type = AVMEDIA_TYPE_DATA;
|
||||
st->codec->codec_id = AV_CODEC_ID_BIN_DATA;
|
||||
|
Loading…
x
Reference in New Issue
Block a user