Skip to content

Commit 4666ce0

Browse files
committed
avformat/rmdec: Don't rely on unspecified order of evaluation
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
1 parent 9a471c5 commit 4666ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libavformat/rmdec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ static int ivr_read_header(AVFormatContext *s)
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);

0 commit comments

Comments
 (0)