mirror of https://git.ffmpeg.org/ffmpeg.git
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);
|
pthread_mutex_unlock(&c->buffer_mutex);
|
||||||
av_frame_free(&frame);
|
av_frame_free(&frame);
|
||||||
if(got_packet) {
|
if(got_packet) {
|
||||||
int ret2 = av_dup_packet(pkt);
|
int ret2 = av_packet_make_refcounted(pkt);
|
||||||
if (ret >= 0 && ret2 < 0)
|
if (ret >= 0 && ret2 < 0)
|
||||||
ret = ret2;
|
ret = ret2;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue