You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
swscale/lut3d: pass SwsFormat by pointer instead of value in ff_sws_lut3d_pick_pixfmt()
This commit is contained in:
+2
-2
@@ -756,8 +756,8 @@ static int adapt_colors(SwsGraph *graph, SwsFormat src, SwsFormat dst,
|
||||
if (!lut)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
fmt_in = ff_sws_lut3d_pick_pixfmt(src, 0);
|
||||
fmt_out = ff_sws_lut3d_pick_pixfmt(dst, 1);
|
||||
fmt_in = ff_sws_lut3d_pick_pixfmt(&src, 0);
|
||||
fmt_out = ff_sws_lut3d_pick_pixfmt(&dst, 1);
|
||||
if (fmt_in != src.format) {
|
||||
SwsFormat tmp = src;
|
||||
tmp.format = fmt_in;
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ bool ff_sws_lut3d_test_fmt(enum AVPixelFormat fmt, int output)
|
||||
return fmt == AV_PIX_FMT_RGBA64;
|
||||
}
|
||||
|
||||
enum AVPixelFormat ff_sws_lut3d_pick_pixfmt(SwsFormat fmt, int output)
|
||||
enum AVPixelFormat ff_sws_lut3d_pick_pixfmt(const SwsFormat *fmt, int output)
|
||||
{
|
||||
return AV_PIX_FMT_RGBA64;
|
||||
}
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ bool ff_sws_lut3d_test_fmt(enum AVPixelFormat fmt, int output);
|
||||
/**
|
||||
* Pick the best compatible pixfmt for a given SwsFormat.
|
||||
*/
|
||||
enum AVPixelFormat ff_sws_lut3d_pick_pixfmt(SwsFormat fmt, int output);
|
||||
enum AVPixelFormat ff_sws_lut3d_pick_pixfmt(const SwsFormat *fmt, int output);
|
||||
|
||||
/**
|
||||
* Recalculate the (static) 3DLUT state with new settings. This will recompute
|
||||
|
||||
Reference in New Issue
Block a user