avformat/subfile: Merge if into switch()

Found while reviewing CID1452449 Uninitialized scalar variable

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2a0a7d964b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-06-08 20:45:32 +02:00
parent 13c4320a86
commit 82c53d27aa
No known key found for this signature in database
GPG key ID: B18E8928B3948D64

View file

@ -125,9 +125,9 @@ static int64_t subfile_seek(URLContext *h, int64_t pos, int whence)
return end;
}
if (whence == AVSEEK_SIZE)
return end - c->start;
switch (whence) {
case AVSEEK_SIZE:
return end - c->start;
case SEEK_SET:
new_pos = c->start + pos;
break;