projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf7ff01
)
avcodec/webvttenc: do not use EOVERFLOW.
author
Clément Bœsch
<u@pkh.me>
Sun, 25 May 2014 08:27:33 +0000
(10:27 +0200)
committer
Clément Bœsch
<u@pkh.me>
Sun, 25 May 2014 08:28:16 +0000
(10:28 +0200)
According to doc/errno.txt EOVERFLOW is not available everywhere. The
use of -1 is consistent with avcodec/srtenc.c.
libavcodec/webvttenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/webvttenc.c
b/libavcodec/webvttenc.c
index
dbe7c3d
..
9f67a2e
100644
(file)
--- 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;
}