]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rmdec.c
avformat/rmdec: Don't rely on unspecified order of evaluation
[ffmpeg] / 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);