diff options
Diffstat (limited to 'libavformat/img2.c')
-rw-r--r-- | libavformat/img2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/img2.c b/libavformat/img2.c index fe225e970a..2214a1e9e5 100644 --- a/libavformat/img2.c +++ b/libavformat/img2.c @@ -244,7 +244,7 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt) for(i=0; i<3; i++){ if (url_fopen(f[i], filename, URL_RDONLY) < 0) return AVERROR_IO; - size[i]= url_filesize(url_fileno(f[i])); + size[i]= url_fsize(f[i]); if(codec->codec_id != CODEC_ID_RAWVIDEO) break; |