From 6aaaf6d9ae31eb94bc4ce201e17efa7532ad599d Mon Sep 17 00:00:00 2001 From: Diptanshu8 Date: Wed, 15 Mar 2017 16:57:52 +0530 Subject: [PATCH] MKVlang support for a multi-language extraction has been added. --- src/lib_ccx/matroska.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib_ccx/matroska.c b/src/lib_ccx/matroska.c index 336339df..3fafe357 100644 --- a/src/lib_ccx/matroska.c +++ b/src/lib_ccx/matroska.c @@ -852,9 +852,11 @@ void free_sub_track(struct matroska_sub_track* track) void matroska_save_all(struct matroska_ctx* mkv_ctx,char* lang) { + char* match; + mprint("%s\n",lang); for (int i = 0; i < mkv_ctx->sub_tracks_count; i++){ if (lang){ - if (strcmp(mkv_ctx->sub_tracks[i]->lang,lang)==0) + if (match = strstr(lang,mkv_ctx->sub_tracks[i]->lang) != NULL) save_sub_track(mkv_ctx, mkv_ctx->sub_tracks[i]); } else