Commit 015f976a authored by James Almer's avatar James Almer

avcodec/frame_thread_encoder: use av_packet_alloc()

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 40bfaa19
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment