Skip to content

Commit e29ac98

Browse files
committed
clean-up
1 parent 6389f60 commit e29ac98

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

source/ffmpeg-cpp/remuxing/remuxing.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,12 @@ int main()
3838
videoContainer->DecodeBestVideoStream(videoEncoder);
3939
audioContainer->DecodeBestAudioStream(audioEncoder);
4040

41-
41+
// Prepare the pipeline. We want to call this before the rest of the loop
42+
// to ensure that the muxer will be fully ready to receive data from
43+
// multiple sources.
4244
videoContainer->PreparePipeline();
4345
audioContainer->PreparePipeline();
4446

45-
/*while (!videoContainer->IsDone())
46-
{
47-
videoContainer->Step();
48-
}*/
49-
5047
// Pump the audio and video fully through.
5148
// To avoid big buffers, we interleave these calls so that the container
5249
// can be written to disk efficiently.

0 commit comments

Comments
 (0)