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:
parent
8279d02cf1
commit
f98c63e417
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue