On 2013-04-26 15:28:50 +0200, Kostya Shishkov wrote:
> On Fri, Apr 26, 2013 at 03:22:43PM +0200, Janne Grunau wrote:
> > ---
> >  libavfilter/vf_scale.c | 6 ++++--
> >  1 file 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;
> > -- 
> 
> probably OK though there might be some sws version dependency issues

I thought we just assume that all libraries are from the same revision

Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to