Message ID | 20170724122447.3307-1-foobaz86@gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/libavcodec/dcaadpcm.c b/libavcodec/dcaadpcm.c index 9f615e3793..d9f53441b0 100644 --- a/libavcodec/dcaadpcm.c +++ b/libavcodec/dcaadpcm.c @@ -211,9 +211,6 @@ int ff_dcaadpcm_do_real(int pred_vq_index, av_cold int ff_dcaadpcm_init(DCAADPCMEncContext *s) { - if (!s) - return -1; - s->private_data = av_malloc(sizeof(premultiplied_coeffs) * DCA_ADPCM_VQCODEBOOK_SZ); if (!s->private_data) return AVERROR(ENOMEM); @@ -224,8 +221,5 @@ av_cold int ff_dcaadpcm_init(DCAADPCMEncContext *s) av_cold void ff_dcaadpcm_free(DCAADPCMEncContext *s) { - if (!s) - return; - av_freep(&s->private_data); }