[FFmpeg-cvslog] avcodec/aliaspixenc: Use ff_alloc_packet2()
Michael Niedermayer
git at videolan.org
Sun Aug 2 20:47:55 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Aug 2 20:36:24 2015 +0200| [107026ea8188302233a5112840e70a7cdec356cd] | committer: Michael Niedermayer
avcodec/aliaspixenc: Use ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=107026ea8188302233a5112840e70a7cdec356cd
---
libavcodec/aliaspixenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/aliaspixenc.c b/libavcodec/aliaspixenc.c
index 6ceb658..a9ba00c 100644
--- a/libavcodec/aliaspixenc.c
+++ b/libavcodec/aliaspixenc.c
@@ -61,7 +61,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
length = ALIAS_HEADER_SIZE + 4 * width * height; // max possible
- if ((ret = ff_alloc_packet(pkt, length)) < 0) {
+ if ((ret = ff_alloc_packet2(avctx, pkt, length, ALIAS_HEADER_SIZE + height*2)) < 0) {
av_log(avctx, AV_LOG_ERROR, "Error getting output packet of size %d.\n", length);
return ret;
}
More information about the ffmpeg-cvslog
mailing list