typefinders: skip ffmpeg typefinders if there isn't enough data
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 21 Aug 2009 01:58:58 +0000 (02:58 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 21 Aug 2009 01:58:58 +0000 (02:58 +0100)
commit004412848720a29b999b1b85adb6889c32884605
tree6ae0adf5784dc9689202977fc7785f4aaf16b1d1
parent30da9c07dae0649b85e3c0d6d538bec119046de6
typefinders: skip ffmpeg typefinders if there isn't enough data

ffmpeg typefinders don't do bounds checking for small chunks of
data, so just skip them if we don't have a lot of data, to avoid
invalid memory access and/or crashes.
ext/ffmpeg/gstffmpegdemux.c