mirror of
git://f0xx.org/android_cast
synced 2026-07-29 05:17:39 +03:00
snap
This commit is contained in:
@@ -118,11 +118,8 @@ Java_com_foxx_androidcast_media_codec_jni_NativeCodecBridge_nativeVpxEncoderCrea
|
||||
(*env)->ReleaseStringUTFChars(env, mime, mime_utf);
|
||||
return 0L;
|
||||
}
|
||||
if (iface == vpx_codec_vp9_cx()) {
|
||||
vpx_codec_control(&ctx->codec, VP9E_SET_CPUUSED, 8);
|
||||
} else {
|
||||
vpx_codec_control(&ctx->codec, VP8E_SET_CPUUSED, 8);
|
||||
}
|
||||
/* VP8 and VP9 both use VP8E_SET_CPUUSED (see libvpx tests / vp9_cx_iface.c). */
|
||||
vpx_codec_control(&ctx->codec, VP8E_SET_CPUUSED, 8);
|
||||
|
||||
if (!vpx_img_alloc(&ctx->img, img_fmt(), width, height, 1)) {
|
||||
vpx_codec_destroy(&ctx->codec);
|
||||
|
||||
Reference in New Issue
Block a user