Commit 9a0817ba authored by John Stebbins's avatar John Stebbins Committed by Philip Langdale

lavc/assenc: return more meaningful error code

When the buffer is too small, return AVERROR_BUFFER_TOO_SMALL
Signed-off-by: 's avatarPhilip Langdale <philipl@overt.org>
parent 75a84588
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment