]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/astenc.c
astenc: Remove two AVRationals with denominator 1
[ffmpeg] / libavformat / astenc.c
index 6121a0153c07a24bb981a1fce1073ba493710c26..10001c7011b2ea5f76c551fbbc28dc67d6cd470b 100644 (file)
@@ -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);  \