I have mediacodec memory leak on amdgpu, amdgpu HW-acceleration working.
android_x86:/ $ su
android_x86:/ # procrank | head
Error allocating proportional swap offset array.
PID Vss Rss Pss Uss cmdline
6880 717828K 519972K 476512K 471964K media.codec
2271 1890280K 376644K 196004K 183360K com.baidu.input
1280 2152624K 310660K 126668K 106056K system_server
5223 1472244K 316228K 122164K 101428K com.android.systemui
2577 2105916K 272460K 100462K 88588K com.schiztech.swapps
2997 2113464K 258832K 81756K 70104K fi.rojekti.clipper
6233 2068552K 262328K 81380K 68984K com.sonelli.juicessh
2065 1404116K 266504K 80695K 66272K com.google.android.apps.nexuslauncher
4715 1385956K 236824K 65619K 55444K com.termoneplus
android_x86:/ #
setprop media.sf.hwaccel 0, not have memory leak.
android_x86:/ $ su
android_x86:/ # vainfo
libva info: VA-API version 1.14.0
libva info: Trying to open /system/vendor/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.14.0)
vainfo: Driver version: Mesa Gallium driver 22.1.0-rc5 for AMD Radeon Vega 11 Graphics (raven, LLVM 14.0.1, DRM 3.46, 5.18.0-rc7-android-x86_64+)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
android_x86:/ #