mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
Fix some more -Wshadow warnings
These aren't printed with newer gcc or clang versions for some reason. All of them seem to be about local variables shadowing global functions.
This commit is contained in:
@@ -161,9 +161,9 @@ static void free_mp_sws(void *p)
|
||||
|
||||
// You're supposed to set your scaling parameters on the returned context.
|
||||
// Free the context with talloc_free().
|
||||
struct mp_sws_context *mp_sws_alloc(void *talloc_parent)
|
||||
struct mp_sws_context *mp_sws_alloc(void *talloc_ctx)
|
||||
{
|
||||
struct mp_sws_context *ctx = talloc_ptrtype(talloc_parent, ctx);
|
||||
struct mp_sws_context *ctx = talloc_ptrtype(talloc_ctx, ctx);
|
||||
*ctx = (struct mp_sws_context) {
|
||||
.flags = SWS_BILINEAR,
|
||||
.contrast = 1 << 16, // 1.0 in 16.16 fixed point
|
||||
|
||||
Reference in New Issue
Block a user