summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-27 16:38:28 +0100
committerCarl Hetherington <cth@carlh.net>2015-05-27 16:38:28 +0100
commit661de111c0dbc968ecb004eca5b26f8400b136f1 (patch)
tree3097de840bd9b6acf48bc5cc857371998cb00bff /src/lib/ffmpeg_content.cc
parenta28f926237c3de58c202843bea7913c276d0cbbc (diff)
FFmpegContent does not need audio_length().
Diffstat (limited to 'src/lib/ffmpeg_content.cc')
-rw-r--r--src/lib/ffmpeg_content.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc
index 9acc883fd..1ca194f09 100644
--- a/src/lib/ffmpeg_content.cc
+++ b/src/lib/ffmpeg_content.cc
@@ -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
{