|
From: Tapio V. <aa...@us...> - 2010-08-12 21:28:13
|
Module: performous
Branch: joinmenu
Commit: f526acceb1c0322c7694c944441d8b169c1d87b0
Author: Tapio Vierros <tap...@gm...>
Date: Thu Aug 12 20:28:12 2010 +0300
Reduce ffmpeg console spam.
---
game/ffmpeg.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/ffmpeg.cc b/game/ffmpeg.cc
index 1f0d80b..5c136f3 100644
--- a/game/ffmpeg.cc
+++ b/game/ffmpeg.cc
@@ -50,7 +50,7 @@ double FFmpeg::duration() const {
void FFmpeg::open() {
boost::mutex::scoped_lock l(s_avcodec_mutex);
av_register_all();
- //av_log_set_level(AV_LOG_DEBUG);
+ av_log_set_level(AV_LOG_ERROR);
if (av_open_input_file(&pFormatCtx, m_filename.c_str(), NULL, 0, NULL)) throw std::runtime_error("Cannot open input file");
if (av_find_stream_info(pFormatCtx) < 0) throw std::runtime_error("Cannot find stream information");
pFormatCtx->flags |= AVFMT_FLAG_GENPTS;
|