-
- // If the muxer reports a frame rate different than the codec
- double muxer_fps = av_q2d( stream->r_frame_rate );
- if ( source_fps != muxer_fps )
+
+ if ( mlt_properties_get( properties, "force_fps" ) )
+ {
+ source_fps = mlt_properties_get_double( properties, "force_fps" );
+ stream->time_base = av_d2q( source_fps, 255 );
+ }
+ else
+ {
+ // If the muxer reports a frame rate different than the codec
+ double muxer_fps = av_q2d( stream->r_frame_rate );