From: jstebbins Date: Sat, 27 Mar 2010 00:12:58 +0000 (+0000) Subject: fix sporadic incorrect bitrate calculation of muxed tracks X-Git-Tag: 0.9.5~561 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b081b54e1f2dd7b0c30fdf8a41724f57725cb1e9;p=handbrake fix sporadic incorrect bitrate calculation of muxed tracks git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3173 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- 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 ); } }