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:
parent
f34000541a
commit
83ed18a3ca
@ -171,6 +171,8 @@ static int jpegxl_anim_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
av_buffer_unref(&ctx->initial);
|
av_buffer_unref(&ctx->initial);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pkt->pos = avio_tell(pb) - offset;
|
||||||
|
|
||||||
ret = avio_read(pb, pkt->data + offset, size - offset);
|
ret = avio_read(pb, pkt->data + offset, size - offset);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user