Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2014-05-25 12:27:33 +0400
committerClément Bœsch <u@pkh.me>2014-05-25 12:28:16 +0400
commit657c603263fb487790abf2d812022347a7bdcac3 (patch)
tree76f7de9bc9827ebae5be6be74c6d5f0f4abc3be6 /libavcodec/webvttenc.c
parentcf7ff0146c76b93c32edf5230a28b9590acf5105 (diff)
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.
Diffstat (limited to 'libavcodec/webvttenc.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;
}