aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/r210dec.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-12-28 21:07:56 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-12-28 21:07:56 +0100
commit6a6a0620e2f8cf051131ac1cadbb0c43f1db8b03 (patch)
treee9523c598b10cf23b3a35390bb5ac8dda9e5c15f /libavcodec/r210dec.c
parent750b10ff85d42d9e18f65b2ca8db3549fc840d37 (diff)
downloadffmpeg-6a6a0620e2f8cf051131ac1cadbb0c43f1db8b03.tar.gz
Fix R10k blue channel output.
Makes R10k -> gbrp10 ffv1 -> R10k roundtrip bit-identical.
Diffstat (limited to 'libavcodec/r210dec.c')
-rw-r--r--libavcodec/r210dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/r210dec.c b/libavcodec/r210dec.c
index cbebf7c4c6..5dd2f0daae 100644
--- a/libavcodec/r210dec.c
+++ b/libavcodec/r210dec.c
@@ -70,7 +70,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
g = (pixel >> 4) & 0xffc0;
r = (pixel >> 14) & 0xffc0;
} else {
- b = pixel << 4;
+ b = (pixel << 4) & 0xffc0;
g = (pixel >> 6) & 0xffc0;
r = (pixel >> 16) & 0xffc0;
}