Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Lukasz Marek authored on 2014/05/07 04:51:14... | ... |
@@ -234,7 +234,7 @@ void ff_frame_thread_encoder_free(AVCodecContext *avctx){ |
234 | 234 |
pthread_mutex_destroy(&c->buffer_mutex); |
235 | 235 |
pthread_cond_destroy(&c->task_fifo_cond); |
236 | 236 |
pthread_cond_destroy(&c->finished_task_cond); |
237 |
- av_fifo_free(c->task_fifo); c->task_fifo = NULL; |
|
237 |
+ av_fifo_freep(&c->task_fifo); |
|
238 | 238 |
av_freep(&avctx->internal->frame_thread_encoder); |
239 | 239 |
} |
240 | 240 |
|
... | ... |
@@ -183,7 +183,7 @@ static av_cold int libvorbis_encode_close(AVCodecContext *avctx) |
183 | 183 |
vorbis_dsp_clear(&s->vd); |
184 | 184 |
vorbis_info_clear(&s->vi); |
185 | 185 |
|
186 |
- av_fifo_free(s->pkt_fifo); |
|
186 |
+ av_fifo_freep(&s->pkt_fifo); |
|
187 | 187 |
ff_af_queue_close(&s->afq); |
188 | 188 |
av_freep(&avctx->extradata); |
189 | 189 |
|