[vlc-devel] [PATCH 1/2] mediacodec: fix unused variable warning
Thomas Guillem
tom at gllm.fr
Tue Oct 14 12:22:03 CEST 2014
---
modules/codec/omxil/android_mediacodec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/omxil/android_mediacodec.c b/modules/codec/omxil/android_mediacodec.c
index af67fad..4977a2f 100644
--- a/modules/codec/omxil/android_mediacodec.c
+++ b/modules/codec/omxil/android_mediacodec.c
@@ -747,10 +747,10 @@ static void GetOutput(decoder_t *p_dec, JNIEnv *env, picture_t **pp_pic, jlong t
p_sys->inflight_picture[index] = p_pic;
} else {
jobject buf = (*env)->GetObjectArrayElement(env, p_sys->output_buffers, index);
- jsize buf_size = (*env)->GetDirectBufferCapacity(env, buf);
+ //jsize buf_size = (*env)->GetDirectBufferCapacity(env, buf);
uint8_t *ptr = (*env)->GetDirectBufferAddress(env, buf);
- int size = (*env)->GetIntField(env, p_sys->buffer_info, p_sys->size_field);
+ //int size = (*env)->GetIntField(env, p_sys->buffer_info, p_sys->size_field);
int offset = (*env)->GetIntField(env, p_sys->buffer_info, p_sys->offset_field);
ptr += offset; // Check the size parameter as well
--
2.1.0
More information about the vlc-devel
mailing list