forked from bartvdbraak/blender
Fix #35443: Animation player doesn't play some movie formats
Need to initialize FFmpeg for animation player. This is a bit confusing, but the only way to do this properly and clear is to call IMB_ffmpeg_init from playback_mode command line callback. This is because this callback is blocking and "usual" FFmpeg initializetion (which happens after command line parsing) was never called. Could be switched to separate FFmpeg initializtion and debug level set but let's keep simple for now.
This commit is contained in:
parent
c4ee1f2658
commit
8360c14f14
@ -634,6 +634,11 @@ static int playback_mode(int argc, const char **argv, void *UNUSED(data))
|
||||
{
|
||||
/* not if -b was given first */
|
||||
if (G.background == 0) {
|
||||
#ifdef WITH_FFMPEG
|
||||
/* Setup FFmpeg with current debug flags. */
|
||||
IMB_ffmpeg_init();
|
||||
#endif
|
||||
|
||||
WM_main_playanim(argc, argv); /* not the same argc and argv as before */
|
||||
exit(0); /* 2.4x didn't do this */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user