avcodec/movtextenc: Fix infinite loop due to variable truncation
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Mon, 29 Nov 2021 16:41:16 +0000 (17:41 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Thu, 2 Dec 2021 06:27:46 +0000 (07:27 +0100)
commitbb89a2f64fd1d74cc51af62d5ef133be274dd7af
tree75164d15e5b2f3851f3b9b7a79c60e1258bb6f9a
parent6507e96e71b90a299677eca352ea253700dee2a2
avcodec/movtextenc: Fix infinite loop due to variable truncation

Regression since af043b839c38e850af1184fd6be691f8475c048e.
Fixes ticket #9409.

Reviewed-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavcodec/movtextenc.c