summaryrefslogtreecommitdiff
path: root/libavcodec/exr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r--libavcodec/exr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 9c35f5f5ae..d10841d8d6 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -159,13 +159,13 @@ static union av_intfloat32 exr_half2float(uint16_t hf)
mantissa <<= 1;
exp -= (1 << 23);
}
- // clamp the mantissa to 10-bits
+ // clamp the mantissa to 10 bits
mantissa &= ((1 << 10) - 1);
- // shift left to generate single-precision mantissa of 23-bits
+ // shift left to generate single-precision mantissa of 23 bits
mantissa <<= 13;
}
} else {
- // shift left to generate single-precision mantissa of 23-bits
+ // shift left to generate single-precision mantissa of 23 bits
mantissa <<= 13;
// generate single precision biased exponent value
exp = (exp << 13) + HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP;
@@ -1381,7 +1381,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
}
}
- // allocate thread data, used for non EXR_RAW compreesion types
+ // allocate thread data, used for non EXR_RAW compression types
s->thread_data = av_mallocz_array(avctx->thread_count, sizeof(EXRThreadData));
if (!s->thread_data)
return AVERROR_INVALIDDATA;
@@ -1392,7 +1392,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
static int decode_init_thread_copy(AVCodecContext *avctx)
{ EXRContext *s = avctx->priv_data;
- // allocate thread data, used for non EXR_RAW compreesion types
+ // allocate thread data, used for non EXR_RAW compression types
s->thread_data = av_mallocz_array(avctx->thread_count, sizeof(EXRThreadData));
if (!s->thread_data)
return AVERROR_INVALIDDATA;