aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2014-05-25 10:27:33 +0200
committerClément Bœsch <u@pkh.me>2014-05-25 10:28:16 +0200
commit657c603263fb487790abf2d812022347a7bdcac3 (patch)
tree76f7de9bc9827ebae5be6be74c6d5f0f4abc3be6
parentcf7ff0146c76b93c32edf5230a28b9590acf5105 (diff)
downloadffmpeg-657c603263fb487790abf2d812022347a7bdcac3.tar.gz
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.
-rw-r--r--libavcodec/webvttenc.c2
1 files changed, 1 insertions, 1 deletions
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;
}