Its unexpected that a .avi or other "standard" file turns into a playlist. The goal of this patch is to avoid this unexpected behavior and possible privacy or security differences.
This is similar to the same change to hls Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> --- libavformat/imfdec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 7d04d0d853..eafe9a6a26 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -926,6 +926,11 @@ static int imf_probe(const AVProbeData *p) if (!strstr(p->buf, "ContentTitle>")) return 0; + if (!av_match_ext(p->filename, "xml")) { + av_log(NULL, AV_LOG_ERROR, "Not detecting imf with non standard extension\n"); + return 0; + } + return AVPROBE_SCORE_MAX; } -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".