summaryrefslogtreecommitdiff
path: root/src/internal/kitdecoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/kitdecoder.c')
-rw-r--r--src/internal/kitdecoder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/internal/kitdecoder.c b/src/internal/kitdecoder.c
index 09e46d3..b4a69e6 100644
--- a/src/internal/kitdecoder.c
+++ b/src/internal/kitdecoder.c
@@ -78,9 +78,9 @@ Kit_Decoder* Kit_CreateDecoder(const Kit_Source *src, int stream_index,
codec_ctx->thread_type = FF_THREAD_SLICE|FF_THREAD_FRAME;
// This is required for ass_process_chunk() support
- if(LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 25, 100)) {
- av_dict_set(&codec_opts, "sub_text_format", "ass", 0);
- }
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 25, 100)
+ av_dict_set(&codec_opts, "sub_text_format", "ass", 0);
+#endif
// Open the stream
if(avcodec_open2(codec_ctx, codec, &codec_opts) < 0) {