OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ad1b61
)
v210enc: use stride as it is already calculated
author
Paul B Mahol
<onemda@gmail.com>
Sun, 5 Feb 2012 21:14:38 +0000
(21:14 +0000)
committer
Anton Khirnov
<anton@khirnov.net>
Mon, 6 Feb 2012 07:00:23 +0000
(08:00 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/v210enc.c
patch
|
blob
|
history
diff --git
a/libavcodec/v210enc.c
b/libavcodec/v210enc.c
index
00a8902
..
17b3a9a
100644
(file)
--- 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 < a
ligned_width * avctx->height * 8 / 3
) {
+ if (buf_size < a
vctx->height * stride
) {
av_log(avctx, AV_LOG_ERROR, "output buffer too small\n");
return AVERROR(ENOMEM);
}