fix remote-android/redroid-doc#216 auto enable c2
auto enable codec2 if dmabuf_heap or ion available
This commit is contained in:
7
redroid.c2.sh
Executable file
7
redroid.c2.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
# enable codec2 only when dmabuf_heap or ion available
|
||||
if [ -c /dev/dma_heap/system ] || [ -c /dev/ion ];then
|
||||
setprop debug.stagefright.c2inputsurface -1
|
||||
setprop debug.stagefright.ccodec 4
|
||||
fi
|
||||
Reference in New Issue
Block a user