From ebcdba4c6b340b26674f7bee9abc585a26a45304 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 29 Jul 2025 00:19:23 +0200 Subject: [PATCH] avformat/subfile: Initialize end on all cases Fixes: use of uninitialized variable Regression since: e29016a9de8cf9a15569bdcea6e68c8e9ba2f299 Signed-off-by: Michael Niedermayer --- libavformat/subfile.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavformat/subfile.c b/libavformat/subfile.c index b8c6ce0eef..89799feaec 100644 --- a/libavformat/subfile.c +++ b/libavformat/subfile.c @@ -118,11 +118,9 @@ static int64_t subfile_seek(URLContext *h, int64_t pos, int whence) int64_t new_pos, end; int ret; - if (whence == AVSEEK_SIZE || whence == SEEK_END) { end = c->end; if (end == INT64_MAX && (end = ffurl_seek(c->h, 0, AVSEEK_SIZE)) < 0) return end; - } switch (whence) { case AVSEEK_SIZE: