Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-10-13 01:21:11 +0300
committerClément Bœsch <u@pkh.me>2017-10-13 01:25:14 +0300
commitd1aef7d08a06f4adce747b251a81f8b99650bdca (patch)
tree4ab66b8c997bca639bc6b766a177fe1ca18b8cc5 /libavcodec/pixlet.c
parent368fb74831c037c1a1afd06da64c464c2b40d8b1 (diff)
lavc/pixlet: remove unecessary intermediate nb_levels variable
This is a change imported from Libav.
Diffstat (limited to 'libavcodec/pixlet.c')
-rw-r--r--libavcodec/pixlet.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/pixlet.c b/libavcodec/pixlet.c
index d2a5a1ac5d..03a2cdacc8 100644
--- a/libavcodec/pixlet.c
+++ b/libavcodec/pixlet.c
@@ -420,7 +420,7 @@ static void filterfn(int16_t *dest, int16_t *tmp, unsigned size, int64_t scale)
}
static void reconstruction(AVCodecContext *avctx, int16_t *dest,
- unsigned width, unsigned height, ptrdiff_t stride, int nb_levels,
+ unsigned width, unsigned height, ptrdiff_t stride,
int64_t *scaling_h, int64_t *scaling_v)
{
PixletContext *ctx = avctx->priv_data;
@@ -428,11 +428,11 @@ static void reconstruction(AVCodecContext *avctx, int16_t *dest,
int16_t *ptr, *tmp;
int i, j, k;
- scaled_width = width >> nb_levels;
- scaled_height = height >> nb_levels;
+ scaled_width = width >> NB_LEVELS;
+ scaled_height = height >> NB_LEVELS;
tmp = ctx->filter[0];
- for (i = 0; i < nb_levels; i++) {
+ for (i = 0; i < NB_LEVELS; i++) {
int64_t scale_v = scaling_v[i];
int64_t scale_h = scaling_h[i];
scaled_width <<= 1;
@@ -578,7 +578,7 @@ static int decode_plane(AVCodecContext *avctx, int plane,
ctx->band[plane][0].height, stride);
reconstruction(avctx, (int16_t *)frame->data[plane], ctx->w >> shift,
- ctx->h >> shift, stride, NB_LEVELS, ctx->scaling[plane][H],
+ ctx->h >> shift, stride, ctx->scaling[plane][H],
ctx->scaling[plane][V]);
return 0;