diff options
author | John Stebbins <jstebbins@jetheaddev.com> | 2020-04-10 12:15:26 -0600 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2020-04-10 15:58:04 -0700 |
commit | 9a0817baa4bfba301cfd056bfe7260987751fa13 (patch) | |
tree | efc27b3dd3543934481b0cb66d23ca94316977f6 /libavcodec | |
parent | 75a845886386bdb1399516f17094aa5d194b9b82 (diff) | |
download | ffmpeg-9a0817baa4bfba301cfd056bfe7260987751fa13.tar.gz |
lavc/assenc: return more meaningful error code
When the buffer is too small, return AVERROR_BUFFER_TOO_SMALL
Signed-off-by: Philip Langdale <philipl@overt.org>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/assenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/assenc.c b/libavcodec/assenc.c index e54c1d8ec3..a6e1d5d8b9 100644 --- a/libavcodec/assenc.c +++ b/libavcodec/assenc.c @@ -93,7 +93,7 @@ static int ass_encode_frame(AVCodecContext *avctx, if (len > bufsize-total_len-1) { av_log(avctx, AV_LOG_ERROR, "Buffer too small for ASS event.\n"); - return AVERROR(EINVAL); + return AVERROR_BUFFER_TOO_SMALL; } total_len += len; |