summaryrefslogtreecommitdiff
path: root/libavformat/id3v1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/id3v1.c')
-rw-r--r--libavformat/id3v1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/id3v1.c b/libavformat/id3v1.c
index e17e785ad5..0152e39654 100644
--- a/libavformat/id3v1.c
+++ b/libavformat/id3v1.c
@@ -230,7 +230,7 @@ void ff_id3v1_read(AVFormatContext *s)
if (!url_is_streamed(s->pb)) {
/* XXX: change that */
- filesize = url_fsize(s->pb);
+ filesize = avio_size(s->pb);
if (filesize > 128) {
avio_seek(s->pb, filesize - 128, SEEK_SET);
ret = avio_read(s->pb, buf, ID3v1_TAG_SIZE);