diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-28 16:47:23 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-28 16:47:23 +0100 |
commit | 991db639516669f65ce521a2dcef05bd12daba7c (patch) | |
tree | f10948f4de0868c9e27e48bf04da176da77c22ad /libavcodec/frame_thread_encoder.c | |
parent | d8246d475cded6dfaaaa519f5d194b1cc9e6ea57 (diff) | |
download | ffmpeg-991db639516669f65ce521a2dcef05bd12daba7c.tar.gz |
frame_thread_encoder: fix packet memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/frame_thread_encoder.c')
-rw-r--r-- | libavcodec/frame_thread_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/frame_thread_encoder.c b/libavcodec/frame_thread_encoder.c index 26a41afaad..550d145892 100644 --- a/libavcodec/frame_thread_encoder.c +++ b/libavcodec/frame_thread_encoder.c @@ -259,7 +259,7 @@ int ff_thread_video_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVF } task = c->finished_tasks[c->finished_task_index]; *pkt = *(AVPacket*)(task.outdata); - c->finished_tasks[c->finished_task_index].outdata= NULL; + av_freep(&c->finished_tasks[c->finished_task_index].outdata); c->finished_task_index = (c->finished_task_index+1) % BUFFER_SIZE; pthread_mutex_unlock(&c->finished_task_mutex); |