[Title] Bugfix : image size mismatch
authorjinhyung.jo <jinhyung.jo@samsung.com>
Thu, 10 Nov 2011 11:12:49 +0000 (20:12 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Thu, 10 Nov 2011 11:12:49 +0000 (20:12 +0900)
[Type] Bugfix
[Module] Emulator/Multimedia/Camera
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

drivers/media/video/svcd.c

index db6ff1fddc98fe78db2e72e0dad05aaf99246db2..6f529637a33c4f343016a3c6447bb1a0d1ae3208 100755 (executable)
@@ -103,7 +103,12 @@ static int get_image_size(struct svcd_device *dev)
        int size;
 
        switch (dev->pixelformat) {
+               case V4L2_PIX_FMT_RGB24:
+               case V4L2_PIX_FMT_BGR24:
+                       size = dev->width * dev->height * 3;
+                       break;
                case V4L2_PIX_FMT_YUV420:
+               case V4L2_PIX_FMT_YVU420:
                case V4L2_PIX_FMT_NV12:
                        size = (dev->width * dev->height * 3) /2;
                        break;