From 4abffd778b783af60c3babf7ff39e09c06b49220 Mon Sep 17 00:00:00 2001 From: xufuji456 Date: Fri, 13 May 2022 20:58:54 +0800 Subject: [PATCH] Feature: change define of cplusplus --- app/src/main/cpp/video_player.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/cpp/video_player.cpp b/app/src/main/cpp/video_player.cpp index cf378a9..f490a7f 100644 --- a/app/src/main/cpp/video_player.cpp +++ b/app/src/main/cpp/video_player.cpp @@ -14,9 +14,6 @@ extern "C" { #include "libswscale/swscale.h" #include "libavutil/imgutils.h" #include "ffmpeg_jni_define.h" -#ifdef __cplusplus -} -#endif #define TAG "VideoPlayer" @@ -140,4 +137,8 @@ VIDEO_PLAYER_FUNC(void, setPlayRate, jfloat playRate) { VIDEO_PLAYER_FUNC(jint, getDuration) { return duration; -} \ No newline at end of file +} + +#ifdef __cplusplus +} +#endif \ No newline at end of file