summaryrefslogtreecommitdiffstats
path: root/libhb/muxcommon.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-03-27 00:12:58 +0000
committerjstebbins <[email protected]>2010-03-27 00:12:58 +0000
commitb081b54e1f2dd7b0c30fdf8a41724f57725cb1e9 (patch)
treef01f985e6b64fadc3a19c24feaaf1615aefe125e /libhb/muxcommon.c
parentf1952acfdfbf9f21573745ec31cb28fa55aee249 (diff)
fix sporadic incorrect bitrate calculation of muxed tracks
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3173 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/muxcommon.c')
-rw-r--r--libhb/muxcommon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/muxcommon.c b/libhb/muxcommon.c
index a5ee9b0ba..1d27df64e 100644
--- a/libhb/muxcommon.c
+++ b/libhb/muxcommon.c
@@ -185,9 +185,10 @@ static void OutputTrackChunk( hb_mux_t *mux, hb_track_t *track, hb_mux_object_t
while ( ( buf = mf_peek( track ) ) != NULL && buf->start < mux->pts )
{
- m->mux( m, track->mux_data, mf_pull( track ) );
+ buf = mf_pull( track );
track->frames += 1;
track->bytes += buf->size;
+ m->mux( m, track->mux_data, buf );
}
}