summaryrefslogtreecommitdiff
path: root/v4l2-apps/libv4l/libv4lconvert/ov511-decomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-apps/libv4l/libv4lconvert/ov511-decomp.c')
-rw-r--r--v4l2-apps/libv4l/libv4lconvert/ov511-decomp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/v4l2-apps/libv4l/libv4lconvert/ov511-decomp.c b/v4l2-apps/libv4l/libv4lconvert/ov511-decomp.c
index a5d7ff9d1..11ed2a601 100644
--- a/v4l2-apps/libv4l/libv4lconvert/ov511-decomp.c
+++ b/v4l2-apps/libv4l/libv4lconvert/ov511-decomp.c
@@ -603,9 +603,10 @@ static int v4lconvert_ov511_to_yuv420(unsigned char *src, unsigned char *dest,
src_size -= 11; /* Remove footer */
+ remove0blocks(src, &src_size);
+
/* Compressed ? */
if (src[8] & 0x40) {
- remove0blocks(src, &src_size);
rc = Decompress420HiNoMMX(src + 9, dest, w, h, src_size);
} else {
yuv420raw_to_yuv420p(src + 9, dest, w, h);