[FFmpeg-devel] [PATCH 1/2] avcodec/dcaadpcm: remove unreachable code
foo86
foobaz86 at gmail.com
Mon Jul 24 15:24:46 EEST 2017
Arguments passed to these functions are never NULL.
---
libavcodec/dcaadpcm.c | 6 ------
1 file changed, 6 deletions(-)
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);
}
--
2.11.0
More information about the ffmpeg-devel
mailing list