avformat/oggparseopus: Fix shadowing

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2026-02-21 15:59:13 +01:00
parent 51ae4f443d
commit 422ad600cd

View File

@@ -181,7 +181,7 @@ static int opus_packet(AVFormatContext *avf, int idx)
for (; seg < os->nsegs; seg++) {
next_pkt += os->segments[seg];
if (os->segments[seg] < 255 && next_pkt != last_pkt) {
int d = opus_duration(last_pkt, next_pkt - last_pkt);
d = opus_duration(last_pkt, next_pkt - last_pkt);
if (d > 0)
duration += d;
last_pkt = next_pkt;