diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2001-08-13 21:37:10 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2001-08-13 21:37:10 +0000 |
commit | 8be1c6563cd3e13896b8f3381cf6a8e200c1f53b (patch) | |
tree | 3f80373f11ddba48ee510969a2af3374e76c8b27 /libav/img.c | |
parent | 519c2b6d1182513a83efee5b1e8634a7feaedbbf (diff) | |
download | ffmpeg-8be1c6563cd3e13896b8f3381cf6a8e200c1f53b.tar.gz |
win32 fixes
Originally committed as revision 78 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/img.c')
-rw-r--r-- | libav/img.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libav/img.c b/libav/img.c index d6fafd4798..04c35c2132 100644 --- a/libav/img.c +++ b/libav/img.c @@ -16,14 +16,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <stdlib.h> -#include <stdio.h> -#include <unistd.h> -#include <fcntl.h> -#include <errno.h> -#include <string.h> -#include <math.h> - #include "avformat.h" #define IMGFMT_YUV 1 @@ -336,7 +328,7 @@ static int img_read_header(AVFormatContext *s1, AVFormatParameters *ap) /* XXX: hack hack */ h = url_fileno(f); - img_size = lseek((int)h->priv_data, 0, SEEK_END); + img_size = url_seek(h, 0, SEEK_END); if (infer_size(&s->width, &s->height, img_size) < 0) { goto fail1; } |