[FFmpeg-cvslog] avcodec/frame_thread_encoder: use av_packet_alloc()

James Almer git at videolan.org
Sat Sep 23 23:53:26 EEST 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Sep 23 17:50:58 2017 -0300| [015f976aaee5c8aee39276bc742cdbd32dd9dbf9] | committer: James Almer

avcodec/frame_thread_encoder: use av_packet_alloc()

Signed-off-by: James Almer <jamrial at gmail.com>

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

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

diff --git a/libavcodec/frame_thread_encoder.c b/libavcodec/frame_thread_encoder.c
index ffbf5caf29..215aee9fc0 100644
--- a/libavcodec/frame_thread_encoder.c
+++ b/libavcodec/frame_thread_encoder.c
@@ -70,7 +70,7 @@ static void * attribute_align_arg worker(void *v){
         AVFrame *frame;
         Task task;
 
-        if(!pkt) pkt= av_mallocz(sizeof(*pkt));
+        if(!pkt) pkt = av_packet_alloc();
         if(!pkt) continue;
         av_init_packet(pkt);
 



More information about the ffmpeg-cvslog mailing list