Go to the source code of this file.
◆ TEST_MATCH
#define TEST_MATCH |
( |
|
frame_rate, |
|
|
|
code, |
|
|
|
ext_n, |
|
|
|
ext_d |
|
) |
| |
Value: do { \
AVRational fr = frame_rate; \
ff_mpeg12_find_best_frame_rate(fr, &
c, &n, &d, 0); \
if (
c !=
code || n != ext_n || d != ext_d) { \
"code = %d, ext_n = %d, ext_d = %d.\n", \
fr.num, fr.den,
c, n, d); \
return 1; \
} \
} while (0)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
◆ TEST_EXACT
#define TEST_EXACT |
( |
|
frn, |
|
|
|
frd |
|
) |
| |
Value: do { \
ff_mpeg12_find_best_frame_rate(fr, &
c, &n, &d, 0); \
"code = %d, ext_n = %d, ext_d = %d.\n", \
fr.num, fr.den,
c, n, d); \
return 1; \
} \
} while (0)
AVRational av_mul_q(AVRational b, AVRational c)
Multiply two rationals.
static int av_cmp_q(AVRational a, AVRational b)
Compare two rationals.
const AVRational ff_mpeg12_frame_rate_tab[16]
Rational number (pair of numerator and denominator).
◆ main()