Commit 657c6032 authored by Clément Bœsch's avatar Clément Bœsch

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.
parent cf7ff014
......@@ -52,7 +52,7 @@ static void webvtt_print(WebVTTContext *s, const char *str, ...)
static int webvtt_stack_push(WebVTTContext *s, const char c)
{
if (s->stack_ptr >= WEBVTT_STACK_SIZE)
return AVERROR(EOVERFLOW);
return -1;
s->stack[s->stack_ptr++] = c;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment