1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avformat/apvdec: Fix seeking

pkt->pos pointed to the actual packet data, not to the start
of the access unit.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-04-28 11:31:49 +02:00
parent 8279d02cf1
commit f98c63e417

View File

@ -227,6 +227,7 @@ static int apv_read_packet(AVFormatContext *s, AVPacket *pkt)
ret = av_get_packet(s->pb, pkt, au_size);
if (ret < 0)
return ret;
pkt->pos -= 4;
pkt->flags = AV_PKT_FLAG_KEY;
signature = AV_RB32(pkt->data);