diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-22 20:24:19 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-22 20:24:19 +0000 |
| commit | 001dcc94aaba89a5fed1a328496bf83dba5bfb79 (patch) | |
| tree | 7e9bc088780438615182f6602c80987cc8ead148 /src/lib/image.cc | |
| parent | 657f735160fd8b0abc67d6e5f519da5786ed26f0 (diff) | |
Speculative fix to bytes_per_pixel().
Diffstat (limited to 'src/lib/image.cc')
| -rw-r--r-- | src/lib/image.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
