From 685e9b83c22aa3b2dc44bf34c82dbf751b407ab0 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 29 Apr 2013 16:03:21 +0000 Subject: Fix for --debug-ffmpeg not giving enough information --- source/blender/imbuf/intern/util.c | 3 +++ source/creator/creator.c | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/source/blender/imbuf/intern/util.c b/source/blender/imbuf/intern/util.c index 68d1c906a1f..849ba300fbf 100644 --- a/source/blender/imbuf/intern/util.c +++ b/source/blender/imbuf/intern/util.c @@ -271,6 +271,9 @@ void IMB_ffmpeg_init(void) ffmpeg_last_error[0] = '\0'; + if (G.debug & G_DEBUG_FFMPEG) + av_log_set_level(AV_LOG_DEBUG); + /* set own callback which could store last error to report to UI */ av_log_set_callback(ffmpeg_log_callback); } diff --git a/source/creator/creator.c b/source/creator/creator.c index b7d6a96ab04..5c6f85c918d 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -1500,10 +1500,6 @@ int main(int argc, const char **argv) BKE_brush_system_init(); -#ifdef WITH_FFMPEG - IMB_ffmpeg_init(); -#endif - BLI_callback_global_init(); #ifdef WITH_GAMEENGINE @@ -1528,6 +1524,10 @@ int main(int argc, const char **argv) (void)syshandle; #endif +#ifdef WITH_FFMPEG + IMB_ffmpeg_init(); +#endif + /* after level 1 args, this is so playanim skips RNA init */ RNA_init(); -- cgit v1.2.3