diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-07 13:37:09 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-08 11:58:05 +0200 |
commit | 44d218e99aba4cbcbbed06bc5065380636623a36 (patch) | |
tree | 03deb814b3374f2248407c179259064c1103c2ed | |
parent | be5970fcaabde6bc3b74e4f4c7b97360a5b6fb5f (diff) | |
download | ffmpeg-44d218e99aba4cbcbbed06bc5065380636623a36.tar.gz |
avformat/rmdec: Don't rely on unspecified order of evaluation
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit 4666ce0aef395fc7dfa2a718e8d238e58e635d2a)
-rw-r--r-- | libavformat/rmdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 1dec70e95b..fc3bff4859 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -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); |