mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
swscale: Remove duplicated code
In this function, the exact same clamping happens both in the if and unconditionally.
This commit is contained in:
parent
ec1e4a8baf
commit
81a4719d8e
1 changed files with 0 additions and 10 deletions
|
|
@ -853,11 +853,6 @@ yuv2422_1_c_template(SwsContext *c, const int16_t *buf0,
|
|||
V = av_clip_uint8(V);
|
||||
}
|
||||
|
||||
Y1 = av_clip_uint8(Y1);
|
||||
Y2 = av_clip_uint8(Y2);
|
||||
U = av_clip_uint8(U);
|
||||
V = av_clip_uint8(V);
|
||||
|
||||
output_pixels(i * 4, Y1, U, Y2, V);
|
||||
}
|
||||
} else {
|
||||
|
|
@ -875,11 +870,6 @@ yuv2422_1_c_template(SwsContext *c, const int16_t *buf0,
|
|||
V = av_clip_uint8(V);
|
||||
}
|
||||
|
||||
Y1 = av_clip_uint8(Y1);
|
||||
Y2 = av_clip_uint8(Y2);
|
||||
U = av_clip_uint8(U);
|
||||
V = av_clip_uint8(V);
|
||||
|
||||
output_pixels(i * 4, Y1, U, Y2, V);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue