Browse code

lavc: use av_fifo_freep

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>

Lukasz Marek authored on 2014/05/07 04:51:14
Showing 3 changed files
... ...
@@ -724,7 +724,7 @@ static void flac_parse_close(AVCodecParserContext *c)
724 724
         av_free(curr);
725 725
         curr = temp;
726 726
     }
727
-    av_fifo_free(fpc->fifo_buf);
727
+    av_fifo_freep(&fpc->fifo_buf);
728 728
     av_free(fpc->wrap_buf);
729 729
 }
730 730
 
... ...
@@ -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