diff mbox

v4lconvert_rotate90() leaves bytesperline wrong

Message ID 4B80757B.5070804@sleepie.demon.co.uk (mailing list archive)
State Not Applicable
Headers show

Commit Message

Richard Hirst Feb. 20, 2010, 11:51 p.m. UTC
None
diff mbox

Patch

--- ori/libv4lconvert/libv4lconvert.c	2010-02-20 22:44:28.000000000 +0000
+++ libv4l-0.6.0/libv4lconvert/libv4lconvert.c	2010-02-20 23:01:12.000000000 +0000
@@ -1088,8 +1088,10 @@ 
       v4lprocessing_processing(data->processing, convert2_dest, &my_src_fmt);
   }
 
-  if (rotate90)
+  if (rotate90) {
     v4lconvert_rotate90(rotate90_src, rotate90_dest, &my_src_fmt);
+    v4lconvert_fixup_fmt(&my_src_fmt);
+  }
 
   if (hflip || vflip)
     v4lconvert_flip(flip_src, flip_dest, &my_src_fmt, hflip, vflip);