diff options
author | James Almer <jamrial@gmail.com> | 2012-12-18 21:48:06 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-20 05:05:55 +0100 |
commit | 974ac57e83f32f6876096ae20cb73000ff555753 (patch) | |
tree | ada79ed19b6de32aa9626f21346cbb45ed3e8b2a /libavformat/astenc.c | |
parent | 8525fa7c2c341def8a34cd4270a2b9e410d06ae1 (diff) | |
download | ffmpeg-974ac57e83f32f6876096ae20cb73000ff555753.tar.gz |
astenc: Remove two AVRationals with denominator 1
They are completely superfluous when using av_rescale_q_rnd().
Call av_rescale_rnd() using what used to be the numerators instead.
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/astenc.c')
-rw-r--r-- | libavformat/astenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/astenc.c b/libavformat/astenc.c index 6121a0153c..10001c7011 100644 --- a/libavformat/astenc.c +++ b/libavformat/astenc.c @@ -37,7 +37,7 @@ typedef struct ASTMuxContext { #define CHECK_LOOP(type) \ if (ast->loop ## type) { \ - ast->loop ## type = av_rescale_q_rnd(ast->loop ## type, (AVRational){enc->sample_rate, 1}, (AVRational){1000, 1}, AV_ROUND_DOWN); \ + ast->loop ## type = av_rescale_rnd(ast->loop ## type, enc->sample_rate, 1000, AV_ROUND_DOWN); \ if (ast->loop ## type < 0 || ast->loop ## type > UINT_MAX) { \ av_log(s, AV_LOG_ERROR, "Invalid loop" #type " value\n"); \ return AVERROR(EINVAL); \ |