Skip to content
Snippets Groups Projects
Commit 015f976a authored by James Almer's avatar James Almer
Browse files

avcodec/frame_thread_encoder: use av_packet_alloc()


Signed-off-by: default avatarJames Almer <jamrial@gmail.com>
parent 40bfaa19
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment