mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avcodec/movtextdec: Fix wrong error code
Reviewed-by: Philip Langdale <philipl@overt.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
bbc866c9c9
commit
41b077762c
@ -294,7 +294,7 @@ static int decode_styl(const uint8_t *tsmb, MovTextContext *m, uint64_t size)
|
||||
if (style->end < style->start ||
|
||||
(i && style->start < m->s[i - 1].end)) {
|
||||
mov_text_cleanup(m);
|
||||
return AVERROR(ENOMEM);
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
if (style->start == style->end) {
|
||||
/* Skip this style as it applies to no character */
|
||||
|
Loading…
x
Reference in New Issue
Block a user