diff options
author | handbrake <[email protected]> | 2006-01-14 13:24:23 +0000 |
---|---|---|
committer | handbrake <[email protected]> | 2006-01-14 13:24:23 +0000 |
commit | 951be4e0b69aa652c992124025c862c4f1660937 (patch) | |
tree | 82935838e945a8aad290741b71aeeecc09058184 /core/Mp4Mux.c | |
parent | dc8de40de13c3f3e643b980a95ef48ccafb542e3 (diff) |
HandBrake 0.6.0-test2
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@11 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'core/Mp4Mux.c')
-rw-r--r-- | core/Mp4Mux.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/core/Mp4Mux.c b/core/Mp4Mux.c index f780cab01..e1b8e9e64 100644 --- a/core/Mp4Mux.c +++ b/core/Mp4Mux.c @@ -1,4 +1,4 @@ -/* $Id: Mp4Mux.c,v 1.22 2004/02/18 17:07:20 titer Exp $ +/* $Id: Mp4Mux.c,v 1.23 2004/02/18 19:36:35 titer Exp $ This file is part of the HandBrake source code. Homepage: <http://handbrake.m0k.org/>. @@ -59,15 +59,20 @@ void HBMp4MuxClose( HBMp4Mux ** _m ) HBThreadClose( &m->thread ); file = fopen( m->title->file, "r" ); - fseek( file, 0, SEEK_END ); - size = ftell( file ); - fclose( file ); - - HBLog( "HBMp4Mux: videoFrames=%lld, %lld bytes", videoFrames, videoBytes ); - HBLog( "HBMp4Mux: audioFrames=%lld, %lld bytes", audioFrames, audioBytes ); - HBLog( "HBMp4Mux: overhead=%.2f bytes / frame", - ( (float) size - videoBytes - audioBytes ) / - ( videoFrames + audioFrames ) ); + if( file ) + { + fseek( file, 0, SEEK_END ); + size = ftell( file ); + fclose( file ); + + HBLog( "HBMp4Mux: videoFrames=%lld, %lld bytes", + videoFrames, videoBytes ); + HBLog( "HBMp4Mux: audioFrames=%lld, %lld bytes", + audioFrames, audioBytes ); + HBLog( "HBMp4Mux: overhead=%.2f bytes / frame", + ( (float) size - videoBytes - audioBytes ) / + ( videoFrames + audioFrames ) ); + } free( m ); |