sub: fix SDH filtering after change

The change, in an earlier commit, in format for ass to handle results
in a different number of fields to skip. Correct that so SDH filtering
works.

Should fix issue #7188
This commit is contained in:
Dan Oscarsson 2020-02-08 18:04:20 +01:00 committed by wm4
parent e9fc53a10b
commit 18070f7405
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ static void decode(struct sd *sd, struct demux_packet *packet)
for (int n = 0; r && r[n]; n++) { for (int n = 0; r && r[n]; n++) {
char *ass_line = r[n]; char *ass_line = r[n];
if (sd->opts->sub_filter_SDH) if (sd->opts->sub_filter_SDH)
ass_line = filter_SDH(sd, track->event_format, 0, ass_line, 0); ass_line = filter_SDH(sd, track->event_format, 1, ass_line, 0);
if (ass_line) if (ass_line)
ass_process_chunk(track, ass_line, strlen(ass_line), ass_process_chunk(track, ass_line, strlen(ass_line),
llrint(sub_pts * 1000), llrint(sub_pts * 1000),