File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 10
10
#include <libavutil/imgutils.h>
11
11
#include <libswscale/swscale.h>
12
12
13
+ #ifdef DISABLE_RUST
13
14
int hardsubx_process_data (struct lib_hardsubx_ctx * ctx , struct lib_ccx_ctx * ctx_normal )
14
15
{
15
16
// Get the required media attributes and initialize structures
@@ -119,7 +120,7 @@ int hardsubx_process_data(struct lib_hardsubx_ctx *ctx, struct lib_ccx_ctx *ctx_
119
120
avcodec_close (ctx -> codec_ctx );
120
121
avformat_close_input (& ctx -> format_ctx );
121
122
}
122
-
123
+ #endif
123
124
void _hardsubx_params_dump (struct ccx_s_options * options , struct lib_hardsubx_ctx * ctx )
124
125
{
125
126
// Print the relevant passed parameters onto the screen
@@ -317,6 +318,7 @@ void _dinit_hardsubx(struct lib_hardsubx_ctx **ctx)
317
318
freep (ctx );
318
319
}
319
320
321
+ #ifdef DISABLE_RUST
320
322
void hardsubx (struct ccx_s_options * options , struct lib_ccx_ctx * ctx_normal )
321
323
{
322
324
// This is similar to the 'main' function in ccextractor.c, but for hard subs
@@ -344,5 +346,5 @@ void hardsubx(struct ccx_s_options *options, struct lib_ccx_ctx *ctx_normal)
344
346
// Free all allocated memory for the data structures
345
347
_dinit_hardsubx (& ctx );
346
348
}
347
-
349
+ #endif
348
350
#endif
You can’t perform that action at this time.
0 commit comments