You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-10-06 05:47:18 +02:00
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>
This commit is contained in:
committed by
Philip Langdale
parent
75a8458863
commit
9a0817baa4
@@ -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;
|
||||
|
Reference in New Issue
Block a user