mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 11:30:08 +01:00
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:
@@ -125,9 +125,9 @@ static int64_t subfile_seek(URLContext *h, int64_t pos, int whence)
|
|||||||
return end;
|
return end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (whence == AVSEEK_SIZE)
|
|
||||||
return end - c->start;
|
|
||||||
switch (whence) {
|
switch (whence) {
|
||||||
|
case AVSEEK_SIZE:
|
||||||
|
return end - c->start;
|
||||||
case SEEK_SET:
|
case SEEK_SET:
|
||||||
new_pos = c->start + pos;
|
new_pos = c->start + pos;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user