]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/opusdec.c
Merge commit '9f0b6e6827e21e3477abe1199dc2728e30b8c061'
[ffmpeg] / libavcodec / opusdec.c
index 31871e99941881571ceb48b33d754f3778dc1381..95a2435e539f0c807bc2b5b21a92e77d12c0071f 100644 (file)
@@ -671,8 +671,11 @@ static av_cold int opus_decode_init(AVCodecContext *avctx)
 
     /* find out the channel configuration */
     ret = ff_opus_parse_extradata(avctx, c);
-    if (ret < 0)
+    if (ret < 0) {
+        av_freep(&c->channel_maps);
+        av_freep(&c->fdsp);
         return ret;
+    }
 
     /* allocate and init each independent decoder */
     c->streams = av_mallocz_array(c->nb_streams, sizeof(*c->streams));