]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vorbis_dec.c
Add expected const qualifier on 'buf' to match AVCodec.decode's declaration.
[ffmpeg] / libavcodec / vorbis_dec.c
index 9fc619b80345bfa73fddd19ccb23e222342b3b34..6c15cb8b69b4bf519830ccf1e62df1bcd391dfb4 100644 (file)
@@ -960,6 +960,7 @@ static av_cold int vorbis_decode_init(AVCodecContext *avccontext) {
     hdr_type=get_bits(gb, 8);
     if (hdr_type!=5) {
         av_log(avccontext, AV_LOG_ERROR, "Third header is not the setup header.\n");
+        vorbis_free(vc);
         return -1;
     }
     if (vorbis_parse_setup_hdr(vc)) {