Commit de052607 authored by James Almer's avatar James Almer

avcodec/frame_thread_encoder: remove usage of av_dup_packet()

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 860086ee
......@@ -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 {
......
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