FFmpegContent does not need audio_length().
[dcpomatic.git] / src / lib / ffmpeg_content.cc
index 9acc883fd0c306ebb01db70206b3693940e54f6a..1ca194f092f33f28c96a2ba04401c91da5691dd9 100644 (file)
@@ -249,20 +249,6 @@ FFmpegContent::set_audio_stream (shared_ptr<FFmpegAudioStream> s)
        signal_changed (FFmpegContentProperty::AUDIO_STREAM);
 }
 
-Frame
-FFmpegContent::audio_length () const
-{
-       if (!audio_stream ()) {
-               return 0;
-       }
-
-       /* We're talking about the content's audio length here, at the content's frame
-          rate.  We assume it's the same as the video's length, and we can just convert
-          using the content's rates.
-       */
-       return (video_length () / video_frame_rate ()) * audio_frame_rate ();
-}
-
 int
 FFmpegContent::audio_channels () const
 {