[FFmpeg-cvslog] avcodec/tiff: pass arguments to bytestream2_seek in the right order

Leo Izen git at videolan.org
Sun Feb 11 15:58:16 EET 2024


ffmpeg | branch: master | Leo Izen <leo.izen at gmail.com> | Wed Jan 31 14:37:17 2024 -0500| [eb4df2709ec41923b598650051c39b1eda392c8b] | committer: Leo Izen

avcodec/tiff: pass arguments to bytestream2_seek in the right order

The function signature for bytestream2_seek is (gb, offset, whence);
Before this patch, the code passed (gb, SEEK_SET, offset), which is
incorrect.

Siged-off-by: Leo Izen <leo.izen at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eb4df2709ec41923b598650051c39b1eda392c8b
---

 libavcodec/tiff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index adb49e4525..3ce441aa2c 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -1701,7 +1701,7 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
         break;
     case TIFF_ICC_PROFILE:
         gb_temp = s->gb;
-        bytestream2_seek(&gb_temp, SEEK_SET, off);
+        bytestream2_seek(&gb_temp, off, SEEK_SET);
 
         if (bytestream2_get_bytes_left(&gb_temp) < count)
             return AVERROR_INVALIDDATA;



More information about the ffmpeg-cvslog mailing list