X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_boxblur.c;h=0e9bafd700c356648146e4ca39233b0fc1b0b4fa;hb=b3bf41cb75d434b2622433a96dcb617a58e9fca6;hp=17db949bc60c6b6a05a8444f05407ec7d45ed32d;hpb=8998caf0a4d7e55f040c419f984be885ca0688db;p=ffmpeg diff --git a/libavfilter/vf_boxblur.c b/libavfilter/vf_boxblur.c index 17db949bc60..0e9bafd700c 100644 --- a/libavfilter/vf_boxblur.c +++ b/libavfilter/vf_boxblur.c @@ -124,7 +124,7 @@ static int query_formats(AVFilterContext *ctx) const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt); if (!(desc->flags & (AV_PIX_FMT_FLAG_HWACCEL | AV_PIX_FMT_FLAG_BITSTREAM | AV_PIX_FMT_FLAG_PAL)) && (desc->flags & AV_PIX_FMT_FLAG_PLANAR || desc->nb_components == 1) && - (!(desc->flags & AV_PIX_FMT_FLAG_BE) == !HAVE_BIGENDIAN || desc->comp[0].depth_minus1 == 7)) + (!(desc->flags & AV_PIX_FMT_FLAG_BE) == !HAVE_BIGENDIAN || desc->comp[0].depth == 8)) ff_add_format(&formats, fmt); } @@ -351,7 +351,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) int w[4] = { inlink->w, cw, cw, inlink->w }; int h[4] = { in->height, ch, ch, in->height }; const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format); - const int depth = desc->comp[0].depth_minus1 + 1; + const int depth = desc->comp[0].depth; const int pixsize = (depth+7)/8; out = ff_get_video_buffer(outlink, outlink->w, outlink->h);