[FFmpeg-cvslog] proresenc_anatoliy: switch to ff_alloc_packet2().
Michael Niedermayer
git at videolan.org
Thu Mar 22 19:10:34 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 15:00:49 2012 +0100| [d388dd9ee3e0aa11f9c700103fdd2f74bb78463c] | committer: Michael Niedermayer
proresenc_anatoliy: switch to ff_alloc_packet2().
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d388dd9ee3e0aa11f9c700103fdd2f74bb78463c
---
libavcodec/proresenc_anatoliy.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index f0cc4f5..bd96b52 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -26,6 +26,7 @@
*/
#include "avcodec.h"
+#include "internal.h"
#include "put_bits.h"
#include "bytestream.h"
#include "dsputil.h"
@@ -493,9 +494,7 @@ static int prores_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
int frame_size = FFALIGN(avctx->width, 16) * FFALIGN(avctx->height, 16)*16 + 500 + FF_MIN_BUFFER_SIZE; //FIXME choose tighter limit
- if (!pkt->data &&
- (ret = av_new_packet(pkt, frame_size + FF_MIN_BUFFER_SIZE)) < 0) {
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
+ if ((ret = ff_alloc_packet2(avctx, pkt, frame_size + FF_MIN_BUFFER_SIZE)) < 0) {
return ret;
}
More information about the ffmpeg-cvslog
mailing list