Ensure those bits are copied, which will result in the output being the same as the input, where swscale set them to the equivalent of fully opaque.
Showing the changes to libavfilter (1 of 12 files). Show all
Unified · Split
| @@ -84,7 +84,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 83 unmodified lines | ||
| 84 | 84 | if (priv->pix_desc->flags & AV_PIX_FMT_FLAG_PAL) |
| 85 | 85 | memcpy(out->data[1], in->data[1], AVPALETTE_SIZE); |
| 86 | 86 | |
| 87 | − for (c = 0; c < priv->pix_desc->nb_components; c++) { | |
| 87 | + for (c = 0; c < FF_ARRAY_ELEMS(priv->pix_desc->comp); c++) { | |
| 88 | 88 | const int w1 = c == 1 || c == 2 ? cw : w; |
| 89 | 89 | const int h1 = c == 1 || c == 2 ? ch : h; |
| 90 | 90 | |