mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 18:40:03 +01: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);
|
ret = av_get_packet(s->pb, pkt, au_size);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
pkt->pos -= 4;
|
||||||
pkt->flags = AV_PKT_FLAG_KEY;
|
pkt->flags = AV_PKT_FLAG_KEY;
|
||||||
|
|
||||||
signature = AV_RB32(pkt->data);
|
signature = AV_RB32(pkt->data);
|
||||||
|
|||||||
Reference in New Issue
Block a user