summaryrefslogtreecommitdiff
path: root/rotord/rotor.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-03-21 13:45:46 +0000
committerTim Redfern <tim@herge.(none)>2013-03-21 13:45:46 +0000
commitd7b3e313c43420e5914349831fdd14486846e161 (patch)
tree46d99ffaefc104feafc93740d24dabecfddaffea /rotord/rotor.cpp
parent21d64e94be3112ea95dbe62a165fb6e2a67ef1e1 (diff)
libav work
Diffstat (limited to 'rotord/rotor.cpp')
-rw-r--r--rotord/rotor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/rotord/rotor.cpp b/rotord/rotor.cpp
index 0a3a502..07ea2b7 100644
--- a/rotord/rotor.cpp
+++ b/rotord/rotor.cpp
@@ -405,8 +405,9 @@ bool Render_context::load_audio(const string &filename,vector<base_audio_process
if (processedLength < 0) {
- av_free_packet(&packet);
- throw std::runtime_error("Error while processing the data");
+ //av_free_packet(&packet); shouldn't have to because of type safe wrapper
+ cerr <<"Error while processing the data"<< endl;
+ return false;
}
offsetInData += processedLength;