diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-03-21 13:45:46 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-03-21 13:45:46 +0000 |
| commit | d7b3e313c43420e5914349831fdd14486846e161 (patch) | |
| tree | 46d99ffaefc104feafc93740d24dabecfddaffea /rotord/rotor.cpp | |
| parent | 21d64e94be3112ea95dbe62a165fb6e2a67ef1e1 (diff) | |
libav work
Diffstat (limited to 'rotord/rotor.cpp')
| -rw-r--r-- | rotord/rotor.cpp | 5 |
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; |
