[FFmpeg-cvslog] pcm-dvd: use av_freep()

Paul B Mahol git at videolan.org
Sun Sep 1 21:23:19 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep  1 19:20:39 2013 +0000| [5be7aecc80b5efcd3eb01868caeb01b72b4bfd87] | committer: Paul B Mahol

pcm-dvd: use av_freep()

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5be7aecc80b5efcd3eb01868caeb01b72b4bfd87
---

 libavcodec/pcm-dvd.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/pcm-dvd.c b/libavcodec/pcm-dvd.c
index e3906a2..d940565 100644
--- a/libavcodec/pcm-dvd.c
+++ b/libavcodec/pcm-dvd.c
@@ -56,8 +56,7 @@ static av_cold int pcm_dvd_decode_uninit(AVCodecContext *avctx)
 {
     PCMDVDContext *s = avctx->priv_data;
 
-    if (s->extra_samples)
-        av_free(s->extra_samples);
+    av_freep(&s->extra_samples);
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list