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>
This commit is contained in:
parent
c8200d3825
commit
2a0a7d964b
1 changed files with 2 additions and 2 deletions
|
|
@ -123,9 +123,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue