ext/ffmpeg/gstffmpegdemux.c: reduce maximum probability in typefinding to POSSIBLE. prevents misidentification of my ...

Original commit message from CVS:
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_type_find):
reduce maximum probability in typefinding to POSSIBLE. prevents
misidentification of my mp3s as video/mpeg
This commit is contained in:
Benjamin Otte 2004-04-19 02:08:23 +00:00
parent c5ebf6847f
commit 73c5b14aa7
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2004-04-19 Benjamin Otte <otte@gnome.org>
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_type_find):
reduce maximum probability in typefinding to POSSIBLE. prevents
misidentification of my mp3s as video/mpeg
2004-04-15 Ronald Bultje <rbultje@ronald.bitfreak.net>
* ext/ffmpeg/gstffmpegcolorspace.c: (gst_ffmpegcsp_chain):

2
common

@ -1 +1 @@
Subproject commit c4fb9e5b7bc69f9420a0f008230e3028fdc2b097
Subproject commit e55182f6eece70ff99e33b9800b27a926670dbdd

View file

@ -550,9 +550,10 @@ gst_ffmpegdemux_type_find (GstTypeFind * tf, gpointer priv)
probe_data.buf_size = GST_FFMPEG_TYPE_FIND_SIZE;
res = in_plugin->read_probe (&probe_data);
res = res * GST_TYPE_FIND_MAXIMUM / AVPROBE_SCORE_MAX;
if (res > 0)
if (res > 0) {
res = MAX (1, res * GST_TYPE_FIND_POSSIBLE / AVPROBE_SCORE_MAX);
gst_type_find_suggest (tf, res, params->sinkcaps);
}
}
}