projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
657f735
)
Speculative fix to bytes_per_pixel().
author
Carl Hetherington
<cth@carlh.net>
Tue, 22 Jan 2013 20:24:19 +0000
(20:24 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 22 Jan 2013 20:24:19 +0000
(20:24 +0000)
src/lib/image.cc
patch
|
blob
|
history
diff --git
a/src/lib/image.cc
b/src/lib/image.cc
index c41558f02b178b2981edc509ddcee217c986312e..4eed0e5b4d8417dc2ad4f7f204fa673b47c5b8db 100644
(file)
--- 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;