mirror of https://git.videolan.org/git/ffmpeg.git
avcodec/webvttenc: do not use EOVERFLOW.
According to doc/errno.txt EOVERFLOW is not available everywhere. The use of -1 is consistent with avcodec/srtenc.c.
This commit is contained in:
parent
cf7ff0146c
commit
657c603263
|
@ -52,7 +52,7 @@ static void webvtt_print(WebVTTContext *s, const char *str, ...)
|
||||||
static int webvtt_stack_push(WebVTTContext *s, const char c)
|
static int webvtt_stack_push(WebVTTContext *s, const char c)
|
||||||
{
|
{
|
||||||
if (s->stack_ptr >= WEBVTT_STACK_SIZE)
|
if (s->stack_ptr >= WEBVTT_STACK_SIZE)
|
||||||
return AVERROR(EOVERFLOW);
|
return -1;
|
||||||
s->stack[s->stack_ptr++] = c;
|
s->stack[s->stack_ptr++] = c;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue