summaryrefslogtreecommitdiff
path: root/rotord/libavexporter.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-05-02 18:35:29 +0100
committerTim Redfern <tim@herge.(none)>2013-05-02 18:35:29 +0100
commit4aa8f7c20c5e8bbe1ed9b007a1193ced8b019f4d (patch)
treea15b5161b4bdff3f3115355e6e34229595876dfa /rotord/libavexporter.cpp
parent836848622f85231c3ff6b9af49704fec4c035df4 (diff)
include problems - added makde Clang for clarity
Diffstat (limited to 'rotord/libavexporter.cpp')
-rw-r--r--rotord/libavexporter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/rotord/libavexporter.cpp b/rotord/libavexporter.cpp
index d9faa5b..7b6d1cf 100644
--- a/rotord/libavexporter.cpp
+++ b/rotord/libavexporter.cpp
@@ -56,12 +56,11 @@ bool libav::Exporter::record(std::string filename){
open_video(oc, video_codec, video_st);
if (audio_st) {
audioframesize=open_audio(oc, audio_codec, audio_st);
- audiostep=((float)audio_st->r_frame_rate.den)/audio_st->r_frame_rate.num;
- audiostep=((float)audioframesize)/44100.0f; //where to get the framesize from?????
+ audiostep=((float)audioframesize)/(audio_st->codec->sample_rate);
std::cerr << "opened audio codec with "<<audioframesize<<" frame size and "<<audiostep<<" seconds per frame"<<std::endl;
}
-
+
av_dump_format(oc, 0, filename.c_str(), 1);
// open the output file, if needed //