mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-09 09:32:43 +00:00
swscale/ops_backend: mark unreachable branch
The pixel format for the process loops have already been checked at
this point to be valid.
The switch added in e4abfb8e51 returns AVERROR(EINVAL) in the default
case without calling ff_sws_op_chain_free(chain), but there's no need
to free it since we mark this branch as unreachable.
This commit is contained in:
@@ -88,7 +88,7 @@ static int compile(SwsContext *ctx, SwsOpList *ops, SwsCompiledOp *out)
|
||||
case SWS_PIXEL_U16: out->func = process_u16; break;
|
||||
case SWS_PIXEL_U32: out->func = process_u32; break;
|
||||
case SWS_PIXEL_F32: out->func = process_f32; break;
|
||||
default: return AVERROR(EINVAL);
|
||||
default: av_unreachable("Invalid pixel type!");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user