]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/nellymoserenc.c
avformat/avio: Add Metacube support
[ffmpeg] / libavcodec / nellymoserenc.c
index 99ede2f42b4a95e4c66c5ddebe755b09846c8d57..2e13e6af089b5a3394c47a341a9bd9500b7972a3 100644 (file)
@@ -138,10 +138,8 @@ static av_cold int encode_end(AVCodecContext *avctx)
 
     ff_mdct_end(&s->mdct_ctx);
 
-    if (s->avctx->trellis) {
-        av_freep(&s->opt);
-        av_freep(&s->path);
-    }
+    av_freep(&s->opt);
+    av_freep(&s->path);
     ff_af_queue_close(&s->afq);
     av_freep(&s->fdsp);
 
@@ -419,7 +417,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
     return 0;
 }
 
-AVCodec ff_nellymoser_encoder = {
+const AVCodec ff_nellymoser_encoder = {
     .name           = "nellymoser",
     .long_name      = NULL_IF_CONFIG_SMALL("Nellymoser Asao"),
     .type           = AVMEDIA_TYPE_AUDIO,