th_encode_free(h->t_state);
av_freep(&h->stats);
av_freep(&avc_context->stats_out);
- av_freep(&avc_context->extradata);
avc_context->extradata_size = 0;
return 0;
}
/** AVCodec struct exposed to libavcodec */
-AVCodec ff_libtheora_encoder = {
+const AVCodec ff_libtheora_encoder = {
.name = "libtheora",
.long_name = NULL_IF_CONFIG_SMALL("libtheora Theora"),
.type = AVMEDIA_TYPE_VIDEO,