[FFmpeg-cvslog] Fix R10k blue channel output.
Carl Eugen Hoyos
git at videolan.org
Sun Dec 28 21:44:40 CET 2014
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Dec 28 21:07:56 2014 +0100| [6a6a0620e2f8cf051131ac1cadbb0c43f1db8b03] | committer: Carl Eugen Hoyos
Fix R10k blue channel output.
Makes R10k -> gbrp10 ffv1 -> R10k roundtrip bit-identical.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6a6a0620e2f8cf051131ac1cadbb0c43f1db8b03
---
libavcodec/r210dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/r210dec.c b/libavcodec/r210dec.c
index cbebf7c..5dd2f0d 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;
}
More information about the ffmpeg-cvslog
mailing list