From c914fd2977e96f82082559bec867a6af743f3ba5 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Thu, 1 May 2025 19:53:24 +0200 Subject: [PATCH] avformat/av1dec: Remove redundant avio_tell() AV1DemuxContext.temporal_unit_size is zero after reading the header, so the position set when reading the header will not be used at all. Signed-off-by: Andreas Rheinhardt --- libavformat/av1dec.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavformat/av1dec.c b/libavformat/av1dec.c index 38001b124f..536422959e 100644 --- a/libavformat/av1dec.c +++ b/libavformat/av1dec.c @@ -97,8 +97,6 @@ static int av1_read_header(AVFormatContext *s) if (ret < 0) return ret; - c->pos = avio_tell(s->pb); - return 0; }