]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libvorbisenc.c
avcodec/mjpegdec: fix SOF check in EOI
[ffmpeg] / libavcodec / libvorbisenc.c
index bf9476495438c956e366ec4c6ac9fb54280fb575..d0f4c65aacc58b274f25da408d1cd8c31dfbd310 100644 (file)
@@ -196,7 +196,6 @@ static av_cold int libvorbis_encode_close(AVCodecContext *avctx)
 
     av_fifo_freep(&s->pkt_fifo);
     ff_af_queue_close(&s->afq);
-    av_freep(&avctx->extradata);
 
     av_vorbis_parse_free(&s->vp);
 
@@ -374,7 +373,7 @@ static int libvorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
     return 0;
 }
 
-AVCodec ff_libvorbis_encoder = {
+const AVCodec ff_libvorbis_encoder = {
     .name           = "libvorbis",
     .long_name      = NULL_IF_CONFIG_SMALL("libvorbis"),
     .type           = AVMEDIA_TYPE_AUDIO,