diff options
author | James Almer <jamrial@gmail.com> | 2016-12-22 20:45:32 -0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-12-23 09:19:34 +0100 |
commit | 41de965e31ef68baee1833da7fe3407fb192668b (patch) | |
tree | 295b27fe6aa2145811dfa22c4faca2a9f6b871bc /libavcodec | |
parent | 8156b5ac94368e5d4ddc66675ededf9b5dd507ab (diff) | |
download | ffmpeg-41de965e31ef68baee1833da7fe3407fb192668b.tar.gz |
avcodec/pixlet: remove unnecessary double to float conversion
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/pixlet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/pixlet.c b/libavcodec/pixlet.c index c5d37bb46b..c1bd32187b 100644 --- a/libavcodec/pixlet.c +++ b/libavcodec/pixlet.c @@ -457,7 +457,7 @@ static void postprocess_luma(AVFrame *frame, int w, int h, int depth) uint16_t *dsty = (uint16_t *)frame->data[0]; int16_t *srcy = (int16_t *)frame->data[0]; ptrdiff_t stridey = frame->linesize[0] / 2; - const float factor = 1. / ((1 << depth) - 1); + const float factor = 1.0f / ((1 << depth) - 1); int i, j; for (j = 0; j < h; j++) { @@ -502,8 +502,8 @@ static int decode_plane(AVCodecContext *avctx, int plane, AVPacket *avpkt, AVFra int i, ret; for (i = ctx->levels - 1; i >= 0; i--) { - ctx->scaling[plane][H][i] = 1000000. / sign_extend(bytestream2_get_be32(&ctx->gb), 32); - ctx->scaling[plane][V][i] = 1000000. / sign_extend(bytestream2_get_be32(&ctx->gb), 32); + ctx->scaling[plane][H][i] = 1000000.0f / sign_extend(bytestream2_get_be32(&ctx->gb), 32); + ctx->scaling[plane][V][i] = 1000000.0f / sign_extend(bytestream2_get_be32(&ctx->gb), 32); } bytestream2_skip(&ctx->gb, 4); |