diff mp3.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 c5077fdab490
line wrap: on
line diff
--- a/mp3.c	Tue May 17 22:47:34 2005 +0000
+++ b/mp3.c	Thu May 19 00:06:27 2005 +0000
@@ -258,7 +258,7 @@
     /* try to get the TAG */
     if (!url_is_streamed(&s->pb)) {
         /* XXX: change that */
-        filesize = url_filesize(url_fileno(&s->pb));
+        filesize = url_fsize(&s->pb);
         if (filesize > 128) {
             url_fseek(&s->pb, filesize - 128, SEEK_SET);
             ret = get_buffer(&s->pb, buf, ID3_TAG_SIZE);