Fixes: use of uninitialized variable Regression since: e29016a9de8cf9a15569bdcea6e68c8e9ba2f299
Unified · Split
| @@ -118,11 +118,9 @@ static int64_t subfile_seek(URLContext *h, int64_t pos, int whence) · 117 unmodified lines | ||
| 118 | 118 | int64_t new_pos, end; |
| 119 | 119 | int ret; |
| 120 | 120 | |
| 121 | − if (whence == AVSEEK_SIZE || whence == SEEK_END) { | |
| 122 | 121 | end = c->end; |
| 123 | 122 | if (end == INT64_MAX && (end = ffurl_seek(c->h, 0, AVSEEK_SIZE)) < 0) |
| 124 | 123 | return end; |
| 125 | − } | |
| 126 | 124 | |
| 127 | 125 | switch (whence) { |
| 128 | 126 | case AVSEEK_SIZE: |