movsub_bsf: Fix mov2textsub regression release/4.0
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:53:28 +0000 (23:53 -0300)
commit5ace41951948c6507926f13a924ff557bf7c2093
tree6b55881d6c692d21b7f4e889dcb35058e9adb753
parent82e1fb864b37a03b63aa43456d0b9f744bb409f5
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>
(cherry picked from commit 800f618a340d122754e7bdb82c22463cb9bd17b0)
libavcodec/movsub_bsf.c