Commit f324baea authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Do not try to compute a thumbnail of 0 width or 0 height

parent 7fa16911
......@@ -171,6 +171,13 @@ jbyteArray Java_org_videolan_vlc_LibVLC_getThumbnail(JNIEnv *env, jobject thiz,
goto end;
}
/* VLC could not tell us the size */
if( videoWidth == 0 || videoHeight == 0 )
{
LOGE("Could not find correct dimensions.\n");
goto end;
}
/* Compute the size parameters of the frame to generate. */
unsigned picWidth = width;
unsigned picHeight = height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment