[FFmpeg-devel] [PATCH]Do not store more than 30 bit for r10k
Carl Eugen Hoyos
cehoyos at ag.or.at
Sat Dec 27 18:02:39 CET 2014
Reimar Döffinger <Reimar.Doeffinger <at> gmx.de> writes:
> - uint16_t b = *src++ >> 4;
> + uint16_t b = *src++ >> 6;
> if (avctx->codec_id == AV_CODEC_ID_R210)
> - pixel = (r << 20) | (g << 10) | b >> 2;
> + pixel = (r << 20) | (g << 10) | b;
> else
> - pixel = (r << 22) | (g << 12) | b;
> + pixel = (r << 22) | (g << 12) | (b << 2);
Please commit.
Thanks for looking at this, Carl Eugen
More information about the ffmpeg-devel
mailing list