aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2025-07-29 00:19:23 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2025-07-30 01:18:03 +0200
commitebcdba4c6b340b26674f7bee9abc585a26a45304 (patch)
tree3029501b5ddb820d898aff44583534e88c26d4fc
parent3ccd7d8c8e85aaae0c6d6cc88ea6cb5309d56cdc (diff)
downloadffmpeg-ebcdba4c6b340b26674f7bee9abc585a26a45304.tar.gz
avformat/subfile: Initialize end on all cases
Fixes: use of uninitialized variable Regression since: e29016a9de8cf9a15569bdcea6e68c8e9ba2f299 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/subfile.c2
1 files changed, 0 insertions, 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: