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 | int64_t new_pos, end; | 118 | int64_t new_pos, end; |
| 119 | int ret; | 119 | int ret; |
| 120 | 120 | ||
| 121 | if (whence == AVSEEK_SIZE || whence == SEEK_END) { | ||
| 122 | end = c->end; | 121 | end = c->end; |
| 123 | if (end == INT64_MAX && (end = ffurl_seek(c->h, 0, AVSEEK_SIZE)) < 0) | 122 | if (end == INT64_MAX && (end = ffurl_seek(c->h, 0, AVSEEK_SIZE)) < 0) |
| 124 | return end; | 123 | return end; |
| 125 | } | ||
| 126 | 124 | ||
| 127 | switch (whence) { | 125 | switch (whence) { |
| 128 | case AVSEEK_SIZE: | 126 | case AVSEEK_SIZE: |