History

avformat/subfile: Initialize end on all cases

Fixes: use of uninitialized variable Regression since: e29016a9de8cf9a15569bdcea6e68c8e9ba2f299

Michael Niedermayer committed 1 year ago

Commit ebcdba41 parent 3ccd7d81 file · +0 −2Browse files

Unified · Split

libavformat/subfile.c+0−2
@@ -118,11 +118,9 @@ static int64_t subfile_seek(URLContext *h, int64_t pos, int whence) · 117 unmodified lines
118118 int64_t new_pos, end;
119119 int ret;
120120
121− if (whence == AVSEEK_SIZE || whence == SEEK_END) {
122121 end = c->end;
123122 if (end == INT64_MAX && (end = ffurl_seek(c->h, 0, AVSEEK_SIZE)) < 0)
124123 return end;
125− }
126124
127125 switch (whence) {
128126 case AVSEEK_SIZE:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t