mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/frame_thread_encoder: remove usage of av_dup_packet()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
860086ee16
commit
de0526070e
@ -92,7 +92,7 @@ static void * attribute_align_arg worker(void *v){
|
||||
pthread_mutex_unlock(&c->buffer_mutex);
|
||||
av_frame_free(&frame);
|
||||
if(got_packet) {
|
||||
int ret2 = av_dup_packet(pkt);
|
||||
int ret2 = av_packet_make_refcounted(pkt);
|
||||
if (ret >= 0 && ret2 < 0)
|
||||
ret = ret2;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user