From 48cb4e9164dedb89565da43b1009899065997dbf Mon Sep 17 00:00:00 2001 From: _VIFEXTech <1290176185@qq.com> Date: Fri, 18 Feb 2022 19:56:14 +0800 Subject: [PATCH] fix(extra): adjust image decoder initialization order (#3085) Co-authored-by: pengyiqiang --- src/extra/lv_extra.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/extra/lv_extra.c b/src/extra/lv_extra.c index 17707a3a7..d789e86b0 100644 --- a/src/extra/lv_extra.c +++ b/src/extra/lv_extra.c @@ -58,6 +58,10 @@ void lv_extra_init(void) lv_fs_win32_init(); #endif +#if LV_USE_FFMPEG + lv_ffmpeg_init(); +#endif + #if LV_USE_PNG lv_png_init(); #endif @@ -78,10 +82,6 @@ void lv_extra_init(void) lv_freetype_init(0, 0, 0); # endif #endif - -#if LV_USE_FFMPEG - lv_ffmpeg_init(); -#endif } /**********************