mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-17 04:54:55 +00:00
v210enc: use stride as it is already calculated
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
7ad1b612c8
commit
986c1c483b
@ -62,7 +62,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
|
||||
uint8_t *p = buf;
|
||||
uint8_t *pdst = buf;
|
||||
|
||||
if (buf_size < aligned_width * avctx->height * 8 / 3) {
|
||||
if (buf_size < avctx->height * stride) {
|
||||
av_log(avctx, AV_LOG_ERROR, "output buffer too small\n");
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user