]> granicus.if.org Git - handbrake/commitdiff
fix sporadic incorrect bitrate calculation of muxed tracks
authorjstebbins <jstebbins.hb@gmail.com>
Sat, 27 Mar 2010 00:12:58 +0000 (00:12 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Sat, 27 Mar 2010 00:12:58 +0000 (00:12 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3173 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/muxcommon.c

index a5ee9b0ba7db77c7d753eb2cdbe443a6d84c9c43..1d27df64ee38c097b531775c9073e0621dc86b4c 100644 (file)
@@ -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 );
     }
 }