summaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2013-04-26 14:49:43 +0200
committerJanne Grunau <janne-libav@jannau.net>2013-05-06 21:48:15 +0200
commit5f87c277bd5caa09cc4f9061d4ccdd58dc121110 (patch)
tree1b41bc7a06c65ac215a1991d3edc24fc7f9dd78b /libavfilter
parent9cfa21c8c2b81146aab574f55c93f27e5c2d435c (diff)
downloadffmpeg-streaming-5f87c277bd5caa09cc4f9061d4ccdd58dc121110.zip
ffmpeg-streaming-5f87c277bd5caa09cc4f9061d4ccdd58dc121110.tar.gz
vf_scale: add endianness conversion pixel format in query_formats
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_scale.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index 7e83a3a..53e336a 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -122,7 +122,8 @@ static int query_formats(AVFilterContext *ctx)
if (ctx->inputs[0]) {
formats = NULL;
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) {
ff_formats_unref(&formats);
return ret;
@@ -132,7 +133,8 @@ static int query_formats(AVFilterContext *ctx)
if (ctx->outputs[0]) {
formats = NULL;
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) {
ff_formats_unref(&formats);
return ret;
OpenPOWER on IntegriCloud