aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Izen <leo.izen@gmail.com>2024-03-21 16:24:39 -0400
committerLeo Izen <leo.izen@gmail.com>2024-03-23 07:29:18 -0400
commit83ed18a3ca05caaaead58f8b662a3c00700823c5 (patch)
tree6d0c10bddbf16eee448a72e9097cda1e0c6440a6
parentf34000541a3f7e81e25fe0a00401661f2c76a5ac (diff)
downloadffmpeg-83ed18a3ca05caaaead58f8b662a3c00700823c5.tar.gz
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>
-rw-r--r--libavformat/jpegxl_anim_dec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/jpegxl_anim_dec.c b/libavformat/jpegxl_anim_dec.c
index f749b378b3..78dc16017d 100644
--- a/libavformat/jpegxl_anim_dec.c
+++ b/libavformat/jpegxl_anim_dec.c
@@ -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;