[FFmpeg-devel] [PATCH 08/17] swscale/graph: add output format assertion
Niklas Haas
ffmpeg at haasn.xyz
Thu Dec 5 13:30:17 EET 2024
From: Niklas Haas <git at haasn.dev>
Just for sanity.
---
libswscale/graph.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libswscale/graph.c b/libswscale/graph.c
index 36b74fad0c..311e2d0287 100644
--- a/libswscale/graph.c
+++ b/libswscale/graph.c
@@ -503,6 +503,7 @@ static void sws_graph_worker(void *priv, int jobnr, int threadnr, int nb_jobs,
const SwsImg *output = pass->output.fmt != AV_PIX_FMT_NONE ? &pass->output : &graph->exec.output;
const int slice_y = jobnr * pass->slice_h;
const int slice_h = FFMIN(pass->slice_h, pass->height - slice_y);
+ av_assert1(output->fmt == pass->format);
pass->run(output, input, slice_y, slice_h, pass);
}
--
2.47.0
More information about the ffmpeg-devel
mailing list