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>
release/7.0
Leo Izen 10 months ago
parent f34000541a
commit 83ed18a3ca
No known key found for this signature in database
GPG Key ID: 764E48EA48221833
  1. 2
      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;

Loading…
Cancel
Save