diff options
Diffstat (limited to 'libavformat/yuv.c')
-rw-r--r-- | libavformat/yuv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/yuv.c b/libavformat/yuv.c index 7037bb46fd..c4bce68b29 100644 --- a/libavformat/yuv.c +++ b/libavformat/yuv.c @@ -54,9 +54,10 @@ static int yuv_read(ByteIOContext *f, URLContext *h; AVImageInfo info1, *info = &info1; + img_size = url_fsize(f); + /* XXX: hack hack */ h = url_fileno(f); - img_size = url_seek(h, 0, SEEK_END); url_get_filename(h, fname, sizeof(fname)); if (infer_size(&info->width, &info->height, img_size) < 0) { |