[FFmpeg-cvslog] dvenc: switch to ff_alloc_packet2()

Michael Niedermayer git at videolan.org
Thu Mar 22 19:10:24 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 04:22:33 2012 +0100| [8f80e5fbeaca2f81259ce65f64cc238638bb5aa0] | committer: Michael Niedermayer

dvenc: 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=8f80e5fbeaca2f81259ce65f64cc238638bb5aa0
---

 libavcodec/dv.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 4717de3..5312f34 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -1286,8 +1286,7 @@ static int dvvideo_encode_frame(AVCodecContext *c, AVPacket *pkt,
     s->sys = avpriv_dv_codec_profile(c);
     if (!s->sys || dv_init_dynamic_tables(s->sys))
         return -1;
-    if ((ret = ff_alloc_packet(pkt, s->sys->frame_size)) < 0) {
-        av_log(c, AV_LOG_ERROR, "Error getting output packet.\n");
+    if ((ret = ff_alloc_packet2(c, pkt, s->sys->frame_size)) < 0) {
         return ret;
     }
 



More information about the ffmpeg-cvslog mailing list