From c92302e0c9d8ba4bb37cfec2568d0ad9c1f9d4ea Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Thu, 1 May 2025 19:53:24 +0200 Subject: [PATCH 1/2] 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; } -- 2.45.2