projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9be0cb
)
fix overhead and bitrate statistics
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 14 Apr 2007 17:50:39 +0000
(17:50 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 14 Apr 2007 17:50:39 +0000
(17:50 +0000)
Originally committed as revision 8732 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
c9bac5d
..
e54947f
100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-915,7
+915,9
@@
static void print_report(AVFormatContext **output_files,
oc = output_files[0];
- total_size = url_ftell(&oc->pb);
+ total_size = url_fsize(&oc->pb);
+ if(total_size<0) // FIXME improve url_fsize() so it works with non seekable output too
+ total_size= url_ftell(&oc->pb);
buf[0] = '\0';
ti1 = 1e10;