[FFmpeg-cvslog] avformat/apvdec: Fix seeking
Andreas Rheinhardt
git at videolan.org
Thu May 1 00:51:18 EEST 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Apr 28 11:31:49 2025 +0200| [f98c63e417d13dc5a30a1d2c2de550d8958f7b10] | committer: Andreas Rheinhardt
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 at jkqxz.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f98c63e417d13dc5a30a1d2c2de550d8958f7b10
---
libavformat/apvdec.c | 1 +
1 file changed, 1 insertion(+)
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);
More information about the ffmpeg-cvslog
mailing list