From 8463ca8dc9a80027fcd66da27e3011fe55282e5d Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 6 Apr 2026 19:26:07 +0200 Subject: [PATCH] avcodec/g726: Don't return value from g726_reset() It always returns zero which none of the callers check, so just return nothing instead. Reviewed-by: Lynne Signed-off-by: Andreas Rheinhardt --- libavcodec/g726.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/g726.c b/libavcodec/g726.c index d05b67660d..33bab7e06d 100644 --- a/libavcodec/g726.c +++ b/libavcodec/g726.c @@ -275,7 +275,7 @@ static int16_t g726_decode(G726Context* c, int I) return av_clip(re_signal * 4, -0xffff, 0xffff); } -static av_cold int g726_reset(G726Context *c) +static av_cold void g726_reset(G726Context *c) { int i; @@ -291,8 +291,6 @@ static av_cold int g726_reset(G726Context *c) c->yl = 34816; c->y = 544; - - return 0; } #if CONFIG_ADPCM_G726_ENCODER || CONFIG_ADPCM_G726LE_ENCODER