diff options
-rw-r--r-- | libavcodec/r210dec.c | 2 |
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; } |