[FFmpeg-cvslog] avcodec/webvttenc: do not use EOVERFLOW.
Clément Bœsch
git at videolan.org
Sun May 25 10:47:23 CEST 2014
ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sun May 25 10:27:33 2014 +0200| [657c603263fb487790abf2d812022347a7bdcac3] | committer: 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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=657c603263fb487790abf2d812022347a7bdcac3
---
libavcodec/webvttenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/webvttenc.c b/libavcodec/webvttenc.c
index dbe7c3d..9f67a2e 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;
}
More information about the ffmpeg-cvslog
mailing list