mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avformat/subfile: Initialize end on all cases
Fixes: use of uninitialized variable
Regression since: e29016a9de
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user