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 <[email protected]> Signed-off-by: Leo Izen <[email protected]> --- libavformat/jpegxl_anim_dec.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.44.0 _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
