You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/frame_thread_encoder: use av_packet_alloc()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -70,7 +70,7 @@ static void * attribute_align_arg worker(void *v){
|
|||||||
AVFrame *frame;
|
AVFrame *frame;
|
||||||
Task task;
|
Task task;
|
||||||
|
|
||||||
if(!pkt) pkt= av_mallocz(sizeof(*pkt));
|
if(!pkt) pkt = av_packet_alloc();
|
||||||
if(!pkt) continue;
|
if(!pkt) continue;
|
||||||
av_init_packet(pkt);
|
av_init_packet(pkt);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user