Commit 73c5b14a authored by Benjamin Otte's avatar Benjamin Otte

ext/ffmpeg/gstffmpegdemux.c: reduce maximum probability in typefinding to...

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
parent c5ebf684
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):
......
common @ e55182f6
Subproject commit c4fb9e5b7bc69f9420a0f008230e3028fdc2b097
Subproject commit e55182f6eece70ff99e33b9800b27a926670dbdd
......@@ -550,10 +550,11 @@ 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);
}
}
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment