You've already forked FFmpeg
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user