From b438fa8772d071663692c6c936881e1f44590523 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 14 Jun 2013 20:33:21 +0100 Subject: weird bugs with small files --- rotord/libavwrapper.cpp | 2 +- rotord/rotor.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/rotord/libavwrapper.cpp b/rotord/libavwrapper.cpp index a5f2111..21a329c 100755 --- a/rotord/libavwrapper.cpp +++ b/rotord/libavwrapper.cpp @@ -467,7 +467,7 @@ bool libav::decoder::avtry(int result, const std::string& msg) { if ((result < 0) && (result != AVERROR_EOF)) { char buf[1024]; av_strerror(result, buf, sizeof(buf)); - std::string message = std::string("libav::Error: ") + msg + buf; + std::string message = std::string("libav::Error: ") + msg + " "+ buf; //qDebug() << QString(message.c_str()); cerr<data[0]); return ℑ } + //confusingly, crashes with files not made with ffmpeg/ short files? + return nullptr; }; -- cgit v1.2.3