diff --git a/libavformat/oggparseopus.c b/libavformat/oggparseopus.c index ae4ff22c53..43840c003e 100644 --- a/libavformat/oggparseopus.c +++ b/libavformat/oggparseopus.c @@ -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;