You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vf_scale: add endianness conversion pixel format in query_formats
This commit is contained in:
@@ -122,7 +122,8 @@ static int query_formats(AVFilterContext *ctx)
|
|||||||
if (ctx->inputs[0]) {
|
if (ctx->inputs[0]) {
|
||||||
formats = NULL;
|
formats = NULL;
|
||||||
for (pix_fmt = 0; pix_fmt < AV_PIX_FMT_NB; pix_fmt++)
|
for (pix_fmt = 0; pix_fmt < AV_PIX_FMT_NB; pix_fmt++)
|
||||||
if ( sws_isSupportedInput(pix_fmt)
|
if ((sws_isSupportedInput(pix_fmt) ||
|
||||||
|
sws_isSupportedEndiannessConversion(pix_fmt))
|
||||||
&& (ret = ff_add_format(&formats, pix_fmt)) < 0) {
|
&& (ret = ff_add_format(&formats, pix_fmt)) < 0) {
|
||||||
ff_formats_unref(&formats);
|
ff_formats_unref(&formats);
|
||||||
return ret;
|
return ret;
|
||||||
@@ -132,7 +133,8 @@ static int query_formats(AVFilterContext *ctx)
|
|||||||
if (ctx->outputs[0]) {
|
if (ctx->outputs[0]) {
|
||||||
formats = NULL;
|
formats = NULL;
|
||||||
for (pix_fmt = 0; pix_fmt < AV_PIX_FMT_NB; pix_fmt++)
|
for (pix_fmt = 0; pix_fmt < AV_PIX_FMT_NB; pix_fmt++)
|
||||||
if ( sws_isSupportedOutput(pix_fmt)
|
if ((sws_isSupportedOutput(pix_fmt) ||
|
||||||
|
sws_isSupportedEndiannessConversion(pix_fmt))
|
||||||
&& (ret = ff_add_format(&formats, pix_fmt)) < 0) {
|
&& (ret = ff_add_format(&formats, pix_fmt)) < 0) {
|
||||||
ff_formats_unref(&formats);
|
ff_formats_unref(&formats);
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user