[FFmpeg-cvslog] avcodec/v210enc: Use ff_alloc_packet2()
Michael Niedermayer
git at videolan.org
Sun Aug 2 21:49:38 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Aug 2 20:57:39 2015 +0200| [06f26598919487edc4d2715228a2fd8d3764e059] | committer: Michael Niedermayer
avcodec/v210enc: Use ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=06f26598919487edc4d2715228a2fd8d3764e059
---
libavcodec/v210enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c
index 65684bb..2c8b9cb 100644
--- 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_packet2(avctx, pkt, avctx->height * stride, avctx->height * stride);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
return ret;
More information about the ffmpeg-cvslog
mailing list