} OggContext ;
+#ifdef CONFIG_ENCODERS
static int ogg_write_header(AVFormatContext *avfcontext)
{
OggContext *context = avfcontext->priv_data;
ogg_write_packet,
ogg_write_trailer,
} ;
+#endif //CONFIG_ENCODERS
static int next_packet(AVFormatContext *avfcontext, ogg_packet *op) {
int ogg_init(void) {
+#ifdef CONFIG_ENCODERS
av_register_output_format(&ogg_oformat) ;
+#endif
av_register_input_format(&ogg_iformat);
return 0 ;
}