aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-09-01 19:20:39 +0000
committerPaul B Mahol <onemda@gmail.com>2013-09-01 19:20:39 +0000
commit5be7aecc80b5efcd3eb01868caeb01b72b4bfd87 (patch)
tree9cdbdcd8738e79067202fe67254728facb73852c
parentfc435d977a537f7f97a1e489bc56cf3755081c3d (diff)
downloadffmpeg-5be7aecc80b5efcd3eb01868caeb01b72b4bfd87.tar.gz
pcm-dvd: use av_freep()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/pcm-dvd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/pcm-dvd.c b/libavcodec/pcm-dvd.c
index e3906a2074..d9405651ae 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;
}