You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
movsub_bsf: Fix mov2textsub regression
The mov flavour of timed text uses the first two bytes of the packet as a length field. And up until11bef2fe
said length field has been read correctly in the mov2textsub bsf. But since then the next two bytes are read as if they were the length field. This is fixed in this commit. Reviewed-by: Philip Langdale <philipl@overt.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit800f618a34
)
This commit is contained in:
committed by
James Almer
parent
82e1fb864b
commit
5ace419519
@ -75,8 +75,8 @@ static int mov2textsub(AVBSFContext *ctx, AVPacket *pkt)
|
|||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
pkt->data += 2;
|
|
||||||
pkt->size = FFMIN(pkt->size - 2, AV_RB16(pkt->data));
|
pkt->size = FFMIN(pkt->size - 2, AV_RB16(pkt->data));
|
||||||
|
pkt->data += 2;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user