diff options
author | James Almer <jamrial@gmail.com> | 2017-09-23 17:50:58 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-23 17:52:32 -0300 |
commit | 015f976aaee5c8aee39276bc742cdbd32dd9dbf9 (patch) | |
tree | b72b7b35677058cbd05fa276cd50ddc3453ec27f /libavcodec/frame_thread_encoder.c | |
parent | 40bfaa190c61b6eeff1b76b767c12edd6609967d (diff) | |
download | ffmpeg-015f976aaee5c8aee39276bc742cdbd32dd9dbf9.tar.gz |
avcodec/frame_thread_encoder: use av_packet_alloc()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/frame_thread_encoder.c')
-rw-r--r-- | libavcodec/frame_thread_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |