[FFmpeg-devel] [PATCH 2/6] avcodec/frame_thread_encoder: remove usage of av_dup_packet()
James Almer
jamrial at gmail.com
Sun Mar 25 07:03:35 EEST 2018
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavcodec/frame_thread_encoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/frame_thread_encoder.c b/libavcodec/frame_thread_encoder.c
index 215aee9fc0..2a56edce79 100644
--- a/libavcodec/frame_thread_encoder.c
+++ b/libavcodec/frame_thread_encoder.c
@@ -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_ref(pkt);
if (ret >= 0 && ret2 < 0)
ret = ret2;
} else {
--
2.16.2
More information about the ffmpeg-devel
mailing list