Skip to content

framepace: link without FFmpeg again (g_movie_playing) - #97

Merged
mamcjr merged 1 commit into
mamcjr:mainfrom
3122380113:framepace-no-ffmpeg
Oct 29, 2026
Merged

mamcjr merged 1 commit into
mamcjr:mainfrom
3122380113:framepace-no-ffmpeg

Conversation

@3122380113

Copy link
Copy Markdown
Contributor

Problem

An Android build without the FFmpeg libraries in android/deps/out fails to link:

undefined symbol: g_movie_playing

When FFmpeg isn't found, CMakeLists.txt leaves out runtime/hle/movie.c and defines LARECOMP_NO_FFMPEG. framepace.c still declared g_movie_playing as extern, and that variable only exists in movie.c.

Fix

Under LARECOMP_NO_FFMPEG, framepace.c defines its own static volatile int g_movie_playing, which always stays 0. That is correct here: without FFmpeg no movies play. Builds with FFmpeg are unchanged.

Testing

Built the debug APK on macOS both without and with FFmpeg (the NDK build of build_ffmpeg.sh). Both link, and the game runs on an AYN Odin 3.

🤖 Generated with Claude Code

… movie.c, left out then)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mamcjr
mamcjr merged commit c9760de into mamcjr:main Oct 29, 2026
mamcjr added a commit that referenced this pull request Oct 30, 2026
…p gpu_heap = auto on renamed Adreno 7xx)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
mamcjr added a commit that referenced this pull request Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants