From patchwork Sat Feb 20 23:51:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Hirst X-Patchwork-Id: 80991 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1KNpQen029288 for ; Sat, 20 Feb 2010 23:51:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757027Ab0BTXvZ (ORCPT ); Sat, 20 Feb 2010 18:51:25 -0500 Received: from lon1-post-1.mail.demon.net ([195.173.77.148]:63430 "EHLO lon1-post-1.mail.demon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756959Ab0BTXvY (ORCPT ); Sat, 20 Feb 2010 18:51:24 -0500 Received: from sleepie.demon.co.uk ([80.176.231.188] helo=[192.168.1.5]) by lon1-post-1.mail.demon.net with esmtp (Exim 4.69) id 1Niz6Z-0000th-YC for linux-media@vger.kernel.org; Sat, 20 Feb 2010 23:51:23 +0000 Message-ID: <4B80757B.5070804@sleepie.demon.co.uk> Date: Sat, 20 Feb 2010 23:51:23 +0000 From: Richard Hirst User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: linux-media@vger.kernel.org Subject: [PATCH] v4lconvert_rotate90() leaves bytesperline wrong Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 20 Feb 2010 23:51:26 +0000 (UTC) --- 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);