[FFmpeg-cvslog] flashvenc: switch to ff_alloc_packet2()
Michael Niedermayer
git at videolan.org
Thu Mar 22 19:10:25 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 04:23:20 2012 +0100| [8fb7b5f7c8b29279d29156a40ca17f6f749373a9] | committer: Michael Niedermayer
flashvenc: 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=8fb7b5f7c8b29279d29156a40ca17f6f749373a9
---
libavcodec/flashsvenc.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c
index f5b3015..1d0f5fb 100644
--- a/libavcodec/flashsvenc.c
+++ b/libavcodec/flashsvenc.c
@@ -228,10 +228,7 @@ static int flashsv_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
I_frame = 1;
}
- if ((res = ff_alloc_packet(pkt, s->image_width * s->image_height * 3)) < 0) {
- //Conservative upper bound check for compressed data
- av_log(avctx, AV_LOG_ERROR, "Error getting output packet of size %d.\n",
- s->image_width * s->image_height * 3);
+ if ((res = ff_alloc_packet2(avctx, pkt, s->image_width * s->image_height * 3)) < 0) {
return res;
}
More information about the ffmpeg-cvslog
mailing list