[FFmpeg-cvslog] avcodec/libopenh264enc: Avoid usage of deprecated ff_alloc_packet()

Michael Niedermayer git at videolan.org
Fri Aug 7 23:06:46 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Aug  7 14:18:23 2015 +0200| [005d0069389a0ebb1cfd0934cb6d8a5a260acc91] | committer: Michael Niedermayer

avcodec/libopenh264enc: Avoid usage of deprecated ff_alloc_packet()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=005d0069389a0ebb1cfd0934cb6d8a5a260acc91
---

 libavcodec/libopenh264enc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
index 101dd53..b315e8b 100644
--- a/libavcodec/libopenh264enc.c
+++ b/libavcodec/libopenh264enc.c
@@ -202,7 +202,7 @@ static int svc_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
     }
     av_log(avctx, AV_LOG_DEBUG, "%d slices\n", fbi.sLayerInfo[fbi.iLayerNum - 1].iNalCount);
 
-    if ((ret = ff_alloc_packet(avpkt, size))) {
+    if ((ret = ff_alloc_packet2(avctx, avpkt, size, size))) {
         av_log(avctx, AV_LOG_ERROR, "Error getting output packet\n");
         return ret;
     }



More information about the ffmpeg-cvslog mailing list