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@gmail.com>
This commit is contained in:
parent
66231e5871
commit
eb4df2709e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue