avfilter/vsrc_amf: Remove unused-but-set variable

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2026-01-26 22:57:51 +01:00
parent ca5504fb5c
commit 5b4ba2e1ac

View File

@@ -107,11 +107,10 @@ static void amf_restore_timer_precision(AMFGrabContext *ctx)
static void amf_release_surface(void *opaque, uint8_t *data)
{
int ref = 0;
if(!!data){
AMFInterface *surface = (AMFInterface*)(data);
if (surface && surface->pVtbl)
ref = surface->pVtbl->Release(surface);
surface->pVtbl->Release(surface);
}
}