Untested use of Frame for video/audio content lengths.
[dcpomatic.git] / src / lib / sndfile_decoder.cc
index 09059a8b0717adbf2b8df12b11c6ec48a941477b..ecd1a7e16d46d74ba49e84c2a22482e24839b38c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -116,10 +116,10 @@ SndfileDecoder::audio_channels () const
        return _info.channels;
 }
 
-ContentTime
+Frame
 SndfileDecoder::audio_length () const
 {
-       return ContentTime::from_frames (_info.frames, audio_frame_rate ());
+       return _info.frames;
 }
 
 int