count = 1;
}
- // Always process audio
- if ( !audio_off )
- {
- samples = mlt_sample_calculator( fps, frequency, counter++ );
- mlt_frame_get_audio( frame, &pcm, &afmt, &frequency, &channels, &samples );
- frame->get_audio = NULL;
- }
-
// Get the image
if ( ( time_frame + time_image ) / count < 40000 )
{
if ( !video_off )
mlt_frame_get_image( frame, &image, &this->format, &width, &height, 0 );
mlt_properties_set_int( mlt_frame_properties( frame ), "rendered", 1 );
- time_image += time_difference( &ante );
// Reset the skipped count
skipped = 0;
count = 0;
}
}
+
+ // Always process audio
+ if ( !audio_off )
+ {
+ samples = mlt_sample_calculator( fps, frequency, counter++ );
+ mlt_frame_get_audio( frame, &pcm, &afmt, &frequency, &channels, &samples );
+ frame->get_audio = NULL;
+ }
+
+ // Increment the time take for this frame
+ time_image += time_difference( &ante );
}
// Remove the last frame