summaryrefslogtreecommitdiff
path: root/libavformat/mux.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-06 14:44:15 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-10 07:27:09 +0200
commit107bdd97a9f0acec2e5ea9c63af6ea999444a78a (patch)
treec14682cf0e7ce8e56e9698021066a077bae5a276 /libavformat/mux.c
parentf4a2d722aa8f666e863476b95e1e2cbe92d8146b (diff)
avformat/mux: Move ff_choose_timebase to nutenc, its only user
(This function does not seem to abide by its documentation.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r--libavformat/mux.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c
index f1ae1c874e..cfcfa600df 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -89,21 +89,6 @@ static void frac_add(FFFrac *f, int64_t incr)
f->num = num;
}
-AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precision)
-{
- AVRational q;
-
- q = st->time_base;
-
- for (int j = 2; j < 14; j += 1 + (j > 2))
- while (q.den / q.num < min_precision && q.num % j == 0)
- q.num /= j;
- while (q.den / q.num < min_precision && q.den < (1<<24))
- q.den <<= 1;
-
- return q;
-}
-
enum AVChromaLocation ff_choose_chroma_location(AVFormatContext *s, AVStream *st)
{
AVCodecParameters *par = st->codecpar;