You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
sws: fix gray16_1
This commit is contained in:
@@ -578,8 +578,8 @@ yuv2gray16_1_c_template(SwsContext *c, const int32_t *buf0,
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < (dstW >> 1); i++) {
|
for (i = 0; i < (dstW >> 1); i++) {
|
||||||
int Y1 = buf0[i * 2 ] << 1;
|
int Y1 = (buf0[i * 2 ]+4)>>3;
|
||||||
int Y2 = buf0[i * 2 + 1] << 1;
|
int Y2 = (buf0[i * 2 + 1]+4)>>3;
|
||||||
|
|
||||||
output_pixel(&dest[i * 2 + 0], Y1);
|
output_pixel(&dest[i * 2 + 0], Y1);
|
||||||
output_pixel(&dest[i * 2 + 1], Y2);
|
output_pixel(&dest[i * 2 + 1], Y2);
|
||||||
|
Reference in New Issue
Block a user