avcodec/frame_thread_encoder: remove usage of av_dup_packet()
authorJames Almer <jamrial@gmail.com>
Sun, 25 Mar 2018 01:27:05 +0000 (22:27 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 2 Apr 2018 02:40:41 +0000 (23:40 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/frame_thread_encoder.c

index 215aee9..5ff3f78 100644 (file)
@@ -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 {