Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
f324baea
Commit
f324baea
authored
Apr 15, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not try to compute a thumbnail of 0 width or 0 height
parent
7fa16911
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
vlc-android/jni/thumbnailer.c
vlc-android/jni/thumbnailer.c
+7
-0
No files found.
vlc-android/jni/thumbnailer.c
View file @
f324baea
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment