summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/internal.h6
-rw-r--r--libavformat/mux.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index e9e9293f87..66fb5d64af 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -360,11 +360,11 @@ enum AVCodecID ff_get_pcm_codec_id(int bps, int flt, int be, int sflags);
/**
* Chooses a timebase for muxing the specified stream.
*
- * The choosen timebase allows sample accurate timestamps based
+ * The chosen timebase allows sample accurate timestamps based
* on the framerate or sample rate for audio streams. It also is
- * at least as precisse as 1/min_precission would be.
+ * at least as precise as 1/min_precision would be.
*/
-AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precission);
+AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precision);
/**
* Generate standard extradata for AVC-Intra based on width/height and field
diff --git a/libavformat/mux.c b/libavformat/mux.c
index 1c15a91cd0..cdceadd71b 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -102,7 +102,7 @@ static void frac_add(AVFrac *f, int64_t incr)
f->num = num;
}
-AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precission)
+AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precision)
{
AVRational q;
int j;
@@ -113,9 +113,9 @@ AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precissi
q = st->codec->time_base;
}
for (j=2; j<14; j+= 1+(j>2))
- while (q.den / q.num < min_precission && q.num % j == 0)
+ while (q.den / q.num < min_precision && q.num % j == 0)
q.num /= j;
- while (q.den / q.num < min_precission && q.den < (1<<24))
+ while (q.den / q.num < min_precision && q.den < (1<<24))
q.den <<= 1;
return q;