1
0
Fork 0

avformat/jpegxl_anim_dec: set pos for generic index

avpkt->pos needs to be set for generic indexing or features such as the
stream_loop option will not work.

Co-authored-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: Leo Izen <leo.izen@gmail.com>
This commit is contained in:
Leo Izen 2024-03-21 16:24:39 -04:00
parent f34000541a
commit 83ed18a3ca
No known key found for this signature in database
GPG Key ID: 764E48EA48221833
1 changed files with 2 additions and 0 deletions

View File

@ -171,6 +171,8 @@ static int jpegxl_anim_read_packet(AVFormatContext *s, AVPacket *pkt)
av_buffer_unref(&ctx->initial);
}
pkt->pos = avio_tell(pb) - offset;
ret = avio_read(pb, pkt->data + offset, size - offset);
if (ret < 0)
return ret;