From 657c603263fb487790abf2d812022347a7bdcac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sun, 25 May 2014 10:27:33 +0200 Subject: [PATCH] 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. --- libavcodec/webvttenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/webvttenc.c b/libavcodec/webvttenc.c index dbe7c3d26e..9f67a2eab6 100644 --- a/libavcodec/webvttenc.c +++ b/libavcodec/webvttenc.c @@ -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; }