diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-04-28 11:31:49 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-04-30 23:34:28 +0200 |
commit | f98c63e417d13dc5a30a1d2c2de550d8958f7b10 (patch) | |
tree | 8b9fef9d6490d4ddb83f5d7d63416785bc202060 /libavformat/apvdec.c | |
parent | 8279d02cf1998ec324b7624dc41ed15dc2b01cae (diff) | |
download | ffmpeg-f98c63e417d13dc5a30a1d2c2de550d8958f7b10.tar.gz |
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>
Diffstat (limited to 'libavformat/apvdec.c')
-rw-r--r-- | libavformat/apvdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/apvdec.c b/libavformat/apvdec.c index 300ee77316..d2c2a50629 100644 --- a/libavformat/apvdec.c +++ b/libavformat/apvdec.c @@ -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); |