diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-06-08 20:45:32 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-07-07 23:36:32 +0200 |
commit | 2a0a7d964bfd5da8859c715627eeb7a048bddb79 (patch) | |
tree | 84457955f9a6b550b21cac17e34d3f96169ae128 | |
parent | c8200d382503f5fd839a72af7ba93d53880ad4b7 (diff) | |
download | ffmpeg-2a0a7d964bfd5da8859c715627eeb7a048bddb79.tar.gz |
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>
-rw-r--r-- | libavformat/subfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/subfile.c b/libavformat/subfile.c index 633a9e3c62..eedac1524e 100644 --- a/libavformat/subfile.c +++ b/libavformat/subfile.c @@ -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; |