[FFmpeg-devel] [PATCH 2/2] avformat/libmodplug: Remove code that has become redundant
Michael Niedermayer
michael at niedermayer.cc
Fri Jul 15 23:41:46 EEST 2016
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavformat/libmodplug.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/libavformat/libmodplug.c b/libavformat/libmodplug.c
index f18c610..0921704 100644
--- a/libavformat/libmodplug.c
+++ b/libavformat/libmodplug.c
@@ -350,17 +350,6 @@ static int modplug_read_seek(AVFormatContext *s, int stream_idx, int64_t ts, int
static const char modplug_extensions[] = "669,abc,amf,ams,dbm,dmf,dsm,far,it,mdl,med,mid,mod,mt2,mtm,okt,psm,ptm,s3m,stm,ult,umx,xm,itgz,itr,itz,mdgz,mdr,mdz,s3gz,s3r,s3z,xmgz,xmr,xmz";
-static int modplug_probe(AVProbeData *p)
-{
- if (av_match_ext(p->filename, modplug_extensions)) {
- if (p->buf_size < 16384)
- return AVPROBE_SCORE_EXTENSION/2-1;
- else
- return AVPROBE_SCORE_EXTENSION;
- }
- return 0;
-}
-
static const AVClass modplug_class = {
.class_name = "ModPlug demuxer",
.item_name = av_default_item_name,
@@ -372,7 +361,6 @@ AVInputFormat ff_libmodplug_demuxer = {
.name = "libmodplug",
.long_name = NULL_IF_CONFIG_SMALL("ModPlug demuxer"),
.priv_data_size = sizeof(ModPlugContext),
- .read_probe = modplug_probe,
.read_header = modplug_read_header,
.read_packet = modplug_read_packet,
.read_close = modplug_read_close,
--
1.7.9.5
More information about the ffmpeg-devel
mailing list