[Android] [PATCH] jni: do not prevent thumbnailing of large videos (e.g. 4K).

Rafaël Carré funman at videolan.org
Wed Nov 20 15:00:34 CET 2013


Le 20/11/2013 14:37, Felix Abecassis a écrit :
> ---
>  vlc-android/jni/thumbnailer.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/vlc-android/jni/thumbnailer.c b/vlc-android/jni/thumbnailer.c
> index 2d41a59..133a274 100644
> --- a/vlc-android/jni/thumbnailer.c
> +++ b/vlc-android/jni/thumbnailer.c
> @@ -206,7 +206,7 @@ jbyteArray Java_org_videolan_libvlc_LibVLC_getThumbnail(JNIEnv *env, jobject thi
>          goto end;
>      }
>  
> -    if( videoWidth < 32 || videoHeight < 32 || videoWidth > 2048 || videoWidth > 2048 )
> +    if( videoWidth < 32 || videoHeight < 32 )
>      {
>          LOGE("Wrong video dimensions.\n");
>          goto end;

Why not bump the limit?

do we want to thumbnail 2147483648x2147483648 videos?


More information about the Android mailing list