[FFmpeg-cvslog] avcodec/rawenc: Use ff_alloc_packet2()
Michael Niedermayer
git at videolan.org
Mon Aug 3 14:46:04 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Aug 3 12:39:37 2015 +0200| [77fb14f039031b7a5c9ad9bf323b16d176526812] | committer: Michael Niedermayer
avcodec/rawenc: Use ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=77fb14f039031b7a5c9ad9bf323b16d176526812
---
libavcodec/rawenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c
index a6b6617..75e7269 100644
--- a/libavcodec/rawenc.c
+++ b/libavcodec/rawenc.c
@@ -54,7 +54,7 @@ static int raw_encode(AVCodecContext *avctx, AVPacket *pkt,
if (ret < 0)
return ret;
- if ((ret = ff_alloc_packet(pkt, ret)) < 0)
+ if ((ret = ff_alloc_packet2(avctx, pkt, ret, ret)) < 0)
return ret;
if ((ret = avpicture_layout((const AVPicture *)frame, avctx->pix_fmt, avctx->width,
avctx->height, pkt->data, pkt->size)) < 0)
More information about the ffmpeg-cvslog
mailing list