summaryrefslogtreecommitdiff
path: root/libavformat/ffmdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/ffmdec.c')
-rw-r--r--libavformat/ffmdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c
index 2977527b97..53eaa8e6f7 100644
--- a/libavformat/ffmdec.c
+++ b/libavformat/ffmdec.c
@@ -282,7 +282,7 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
ffm->write_index = avio_rb64(pb);
/* get also filesize */
if (!url_is_streamed(pb)) {
- ffm->file_size = url_fsize(pb);
+ ffm->file_size = avio_size(pb);
if (ffm->write_index)
adjust_write_index(s);
} else {