summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-02 20:36:24 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-02 20:36:24 +0200
commit107026ea8188302233a5112840e70a7cdec356cd (patch)
tree40cb9d7ff066ac483f145e416d997c7129ae829b /libavcodec
parent4a8ec0218e0a852b227a689271c1ebf821e248b6 (diff)
avcodec/aliaspixenc: Use ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/aliaspixenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aliaspixenc.c b/libavcodec/aliaspixenc.c
index 6ceb658487..a9ba00cd29 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;
}