]> git.sesse.net Git - ffmpeg/commitdiff
avformat/rmdec: Don't rely on unspecified order of evaluation
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Wed, 7 Apr 2021 11:37:09 +0000 (13:37 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Thu, 8 Apr 2021 09:05:16 +0000 (11:05 +0200)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavformat/rmdec.c

index 1dec70e95ba0036687407deaf07e3139104fc9f9..fc3bff48590fa8d74aa1be66fad14ea52493c6e2 100644 (file)
@@ -1312,7 +1312,7 @@ static int ivr_read_header(AVFormatContext *s)
     if (avio_r8(pb) != 6)
         goto invalid_data;
     avio_skip(pb, 12);
-    avio_skip(pb, avio_rb64(pb) + pos - avio_tell(s->pb));
+    avio_seek(pb, avio_rb64(pb) + pos, SEEK_SET);
     if (avio_r8(pb) != 8)
         goto invalid_data;
     avio_skip(pb, 8);