Mercurial > libavformat.hg
diff yuv.c @ 764:cdb845a57ae4 libavformat
drop most url_fileno() calls (allows to use ByteIOContext directly in caller apps instead of URLProtocol)
author | aurel |
---|---|
date | Thu, 19 May 2005 00:06:27 +0000 |
parents | 0fdc96c2f2fe |
children | da1d5db0ce5c |
line wrap: on
line diff
--- a/yuv.c Tue May 17 22:47:34 2005 +0000 +++ b/yuv.c Thu May 19 00:06:27 2005 +0000 @@ -54,9 +54,10 @@ 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) {