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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-06-01 05:49:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-01 05:49:18 +0300
commite7b8a3cb0a1429a642c14a2dabc77e3e20ecdf79 (patch)
tree7b7ad9f39ee391468aeb3d8c582ec858164de051 /source/blender/blenkernel/intern/writeffmpeg.c
parentc59d2c739d078f4a7a613a05995002cfdbdca303 (diff)
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/blenkernel/intern/writeffmpeg.c')
-rw-r--r--source/blender/blenkernel/intern/writeffmpeg.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/writeffmpeg.c b/source/blender/blenkernel/intern/writeffmpeg.c
index 7c8eba20a28..60c216a8401 100644
--- a/source/blender/blenkernel/intern/writeffmpeg.c
+++ b/source/blender/blenkernel/intern/writeffmpeg.c
@@ -522,9 +522,9 @@ static AVRational calc_time_base(uint den, double num, int codec_id)
{
/* Convert the input 'num' to an integer. Simply shift the decimal places until we get an integer
* (within a floating point error range).
- * For example if we have den = 3 and num = 0.1 then the fps is: den/num = 30 fps.
- * When converthing this to a ffmpeg time base, we want num to be an integer.
- * So we simply move the decimal places of both numbers. IE den = 30, num = 1.*/
+ * For example if we have `den = 3` and `num = 0.1` then the fps is: `den/num = 30` fps.
+ * When converting this to a FFMPEG time base, we want num to be an integer.
+ * So we simply move the decimal places of both numbers. i.e. `den = 30`, `num = 1`. */
float eps = FLT_EPSILON;
const uint DENUM_MAX = (codec_id == AV_CODEC_ID_MPEG4) ? (1UL << 16) - 1 : (1UL << 31) - 1;
@@ -533,7 +533,7 @@ static AVRational calc_time_base(uint den, double num, int codec_id)
const uint num_integer_bits = log2_floor_u((unsigned int)num);
/* Formula for calculating the epsilon value: (power of two range) / (pow mantissa bits)
- * For example, a float has 23 manitissa bits and the float value 3.5f as a pow2 range of
+ * For example, a float has 23 mantissa bits and the float value 3.5f as a pow2 range of
* (4-2=2):
* (2) / pow2(23) = floating point precision for 3.5f
*/
@@ -619,10 +619,10 @@ static AVStream *alloc_video_stream(FFMpegContext *context,
c->time_base = calc_time_base(rd->frs_sec, rd->frs_sec_base, codec_id);
}
- /* As per the timebase documentation here:
+ /* As per the time-base documentation here:
* https://www.ffmpeg.org/ffmpeg-codecs.html#Codec-Options
* We want to set the time base to (1 / fps) for fixed frame rate video.
- * If it is not possible, we want to set the timebase numbers to something as
+ * If it is not possible, we want to set the time-base numbers to something as
* small as possible.
*/
if (c->time_base.num != 1) {