aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-06-30 22:00:04 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-12 16:40:51 +0200
commite6c0c5731e85f00b5840d9a7d14e38cc3e07d5bc (patch)
treedd42515aedbd8242d1fbae74c30b5d2d2f70b8a2
parent93e0265e27e6dd567812a8661988109421c5447a (diff)
downloadffmpeg-e6c0c5731e85f00b5840d9a7d14e38cc3e07d5bc.tar.gz
doc/examples/mux: remove nop
Found through code review related to CID1604493 Overflowed constant Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--doc/examples/mux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/examples/mux.c b/doc/examples/mux.c
index b034aad56f..0f3a2bb125 100644
--- a/doc/examples/mux.c
+++ b/doc/examples/mux.c
@@ -347,8 +347,7 @@ static int write_audio_frame(AVFormatContext *oc, OutputStream *ost)
if (frame) {
/* convert samples from native format to destination codec format, using the resampler */
/* compute destination number of samples */
- dst_nb_samples = av_rescale_rnd(swr_get_delay(ost->swr_ctx, c->sample_rate) + frame->nb_samples,
- c->sample_rate, c->sample_rate, AV_ROUND_UP);
+ dst_nb_samples = swr_get_delay(ost->swr_ctx, c->sample_rate) + frame->nb_samples;
av_assert0(dst_nb_samples == frame->nb_samples);
/* when we pass a frame to the encoder, it may keep a reference to it