Fix erroneous behaviour when format probe hits end of file
authorMåns Rullgård <mans@mansr.com>
Tue, 16 Mar 2010 21:45:30 +0000 (21:45 +0000)
committerMåns Rullgård <mans@mansr.com>
Tue, 16 Mar 2010 21:45:30 +0000 (21:45 +0000)
commitc7f625eecff0fb76f077d516c15a586576466e67
tree6c584410996bf07fcaf78676aa6e4b4d4ae1c1cf
parent3bd74e92434ba4030878ecae00db0c66649e2337
Fix erroneous behaviour when format probe hits end of file

If the format probe hits end of file, do not add the error code
to the buffer position.  This is obviously wrong, and with a
small input file would cause a negative buffer overflow.

Fixes issue 1818.

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