Speculative fix to bytes_per_pixel().
authorCarl Hetherington <cth@carlh.net>
Tue, 22 Jan 2013 20:24:19 +0000 (20:24 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 22 Jan 2013 20:24:19 +0000 (20:24 +0000)
src/lib/image.cc

index c41558f02b178b2981edc509ddcee217c986312e..4eed0e5b4d8417dc2ad4f7f204fa673b47c5b8db 100644 (file)
@@ -350,7 +350,7 @@ Image::bytes_per_pixel (int c) const
                        return 0.5;
                }
        case PIX_FMT_YUV422P10LE:
-               if (c == 1) {
+               if (c == 0) {
                        return 2;
                } else {
                        return 1;