aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-04-14 17:50:39 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-04-14 17:50:39 +0000
commit859d95baa16a38d8b56e1c949effea870ee30d3b (patch)
tree44d4cb9cd7291f562e325032fae8294153741c7b /ffmpeg.c
parentf9be0cb800a0dee4a5ace5143ada201b7e6cd85d (diff)
downloadffmpeg-859d95baa16a38d8b56e1c949effea870ee30d3b.tar.gz
fix overhead and bitrate statistics
Originally committed as revision 8732 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index c9bac5de60..e54947f923 100644
--- 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;