filename_non_ext instead of filename_without_ext in matroska.c

This commit is contained in:
Carlos Fernandez 2017-03-06 11:32:06 -08:00
parent 564aff23a6
commit 5f510cdfa2

View File

@ -763,7 +763,7 @@ char* generate_filename_from_track(struct matroska_ctx* mkv_ctx, struct matroska
if (track->lang_index == 0)
sprintf(buf, "%s_%s.%s", filename_non_ext, track->lang, matroska_track_text_subtitle_id_extensions[track->codec_id]);
else
sprintf(buf, "%s_%s_" LLD ".%s", filename_without_ext, track->lang, track->lang_index,
sprintf(buf, "%s_%s_" LLD ".%s", filename_non_ext, track->lang, track->lang_index,
matroska_track_text_subtitle_id_extensions[track->codec_id]);
free(filename);
free(filename_non_ext);