History

avformat/rmdec: Don't rely on unspecified order of evaluation

Andreas Rheinhardt committed 5 years ago

Commit 4666ce01 parent 9a471c51 file · +1 −1Browse files

Unified · Split

libavformat/rmdec.c+1−1
@@ -1312,7 +1312,7 @@ static int ivr_read_header(AVFormatContext *s) · 1311 unmodified lines
13121312 if (avio_r8(pb) != 6)
13131313 goto invalid_data;
13141314 avio_skip(pb, 12);
1315− avio_skip(pb, avio_rb64(pb) + pos - avio_tell(s->pb));
1315+ avio_seek(pb, avio_rb64(pb) + pos, SEEK_SET);
13161316 if (avio_r8(pb) != 8)
13171317 goto invalid_data;
13181318 avio_skip(pb, 8);

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