aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-07-05 21:13:04 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-27 20:03:02 +0200
commitaf5f707e46f01d9afff57029d098fb46da53cc93 (patch)
tree3e52d0dfc8ced0959300d1cc797dd4f6ca4c8e02
parent9fe873bec8b6d342064cf282b0ba09f91ac9292f (diff)
downloadffmpeg-af5f707e46f01d9afff57029d098fb46da53cc93.tar.gz
avcodec/v410enc: do not use internal->byte_buffer
it is not optimal when the buffer size is well known at allocation time This avoids a memcpy() about 1% faster Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/v410enc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/v410enc.c b/libavcodec/v410enc.c
index 9a914bdcbb..f35ff75963 100644
--- a/libavcodec/v410enc.c
+++ b/libavcodec/v410enc.c
@@ -43,7 +43,8 @@ static int v410_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
uint32_t val;
int i, j, ret;
- if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 4, 0)) < 0)
+ if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 4,
+ avctx->width * avctx->height * 4)) < 0)
return ret;
dst = pkt->data;