Fix av_file_map(): replace stat(filename, &st) with fstat(fd, &st).
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 22 Dec 2010 16:16:31 +0000 (16:16 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Wed, 22 Dec 2010 16:16:31 +0000 (16:16 +0000)
commitf02cbc4590b31de98b97d376686be148d078143d
tree60f6b1ab61a2551aeca6eb2291988df315a672c4
parent1b31037d625c1e9c09d02190e74452f3925485f6
Fix av_file_map(): replace stat(filename, &st) with fstat(fd, &st).

The file might be replaced between open() and stat().
Spotted by Mans.

Originally committed as revision 26075 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/file.c