movsub_bsf: Fix mov2textsub regression
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 23 Jun 2019 04:46:12 +0000 (06:46 +0200)
committerJames Almer <jamrial@gmail.com>
Tue, 25 Jun 2019 02:49:19 +0000 (23:49 -0300)
commit800f618a340d122754e7bdb82c22463cb9bd17b0
tree79b12e77bc199bc4f322124d7c740b8113b70b28
parent053d33b46b169f35e644ddbf2a2e482515d3a8fe
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 until 11bef2fe 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>
libavcodec/movsub_bsf.c