git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
107026e
)
avcodec/v210enc: Use ff_alloc_packet2()
author
Michael Niedermayer
<michael@niedermayer.cc>
Sun, 2 Aug 2015 18:57:39 +0000
(20:57 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sun, 2 Aug 2015 18:57:39 +0000
(20:57 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/v210enc.c
patch
|
blob
|
history
diff --git
a/libavcodec/v210enc.c
b/libavcodec/v210enc.c
index
65684bb
..
2c8b9cb
100644
(file)
--- a/
libavcodec/v210enc.c
+++ b/
libavcodec/v210enc.c
@@
-116,7
+116,7
@@
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
int h, w, ret;
uint8_t *dst;
- ret = ff_alloc_packet
(pkt
, avctx->height * stride);
+ ret = ff_alloc_packet
2(avctx, pkt, avctx->height * stride
, avctx->height * stride);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
return ret;