diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 04:23:36 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:19 +0100 |
commit | 3f35b66512e4fa740c0cd0cb3a78ae34f5a363a6 (patch) | |
tree | ae5af8c7ff82aa27aaa0bee5ada44f15041faa7f /libavcodec/flashsv2enc.c | |
parent | 8fb7b5f7c8b29279d29156a40ca17f6f749373a9 (diff) | |
download | ffmpeg-3f35b66512e4fa740c0cd0cb3a78ae34f5a363a6.tar.gz |
flashv2enc: switch to ff_alloc_packet2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/flashsv2enc.c')
-rw-r--r-- | libavcodec/flashsv2enc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/flashsv2enc.c b/libavcodec/flashsv2enc.c index 8efdb46921..042331c773 100644 --- a/libavcodec/flashsv2enc.c +++ b/libavcodec/flashsv2enc.c @@ -48,6 +48,7 @@ #include "libavutil/imgutils.h" #include "avcodec.h" +#include "internal.h" #include "put_bits.h" #include "bytestream.h" @@ -833,9 +834,7 @@ static int flashsv2_encode_frame(AVCodecContext *avctx, AVPacket *pkt, *p = *pict; - if (!pkt->data && - (res = av_new_packet(pkt, s->frame_size + FF_MIN_BUFFER_SIZE)) < 0) { - av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n"); + if ((res = ff_alloc_packet2(avctx, pkt, s->frame_size + FF_MIN_BUFFER_SIZE)) < 0) { return res; } |