mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avcodec/frame_thread_encoder: use av_packet_alloc()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
40bfaa190c
commit
015f976aae
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue