OSDN Git Service

Fix updating condition for the probe_size variable in the internal
authorMicah F. Galizia <micahgalizia@gmail.com>
Fri, 26 Mar 2010 01:12:14 +0000 (01:12 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Fri, 26 Mar 2010 01:12:14 +0000 (01:12 +0000)
commit532aa889ebfea486c0d1898a8ed672e001a30598
treeef5d41127d0d3175f9baf5453e604691d5d205ff
parentfd12dd959305aa80bd2e434cc087f3cabd013242
Fix updating condition for the probe_size variable in the internal
loop of ff_probe_input_buffer(), making sure that probe_size is always
set to probe_max_size in the last iteration.

Also make the function return an error if we get to the max probe
length and still cannot figure out what the format is.

Patch by Micah Galizia micahgalizia A gmail D com.

Originally committed as revision 22688 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c