From 001dcc94aaba89a5fed1a328496bf83dba5bfb79 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 22 Jan 2013 20:24:19 +0000 Subject: Speculative fix to bytes_per_pixel(). --- src/lib/image.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/image.cc b/src/lib/image.cc index c41558f02..4eed0e5b4 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -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; -- cgit v1.2.3