[FFmpeg-devel] [PATCH 2/2] avformat/rmdec: Don't rely on unspecified order of evaluation
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Wed Apr 7 14:38:19 EEST 2021
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavformat/rmdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.27.0
More information about the ffmpeg-devel
mailing list