Module: libav Branch: master Commit: 986c1c483befa717ee20710e21f5a5c014666c6e
Author: Paul B Mahol <[email protected]> Committer: Anton Khirnov <[email protected]> Date: Sun Feb 5 21:14:38 2012 +0000 v210enc: use stride as it is already calculated Signed-off-by: Paul B Mahol <[email protected]> Signed-off-by: Anton Khirnov <[email protected]> --- libavcodec/v210enc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c index 00a8902..17b3a9a 100644 --- a/libavcodec/v210enc.c +++ b/libavcodec/v210enc.c @@ -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); } _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
