forked from FFmpeg/FFmpeg
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue