Message ID | 20200410190223.134413-4-jstebbins@jetheaddev.com |
---|---|
State | Accepted |
Commit | 9a0817baa4bfba301cfd056bfe7260987751fa13 |
Headers | show |
Series | [FFmpeg-devel,1/7] lavc/dvbsub: fix potential encode buffer overflow | expand |
Context | Check | Description |
---|---|---|
andriy/ffmpeg-patchwork | success | Make fate finished |
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;