sub: sdh filter fix for null

sdh filter returns NULL when subtitle line should be skipped
This commit is contained in:
Dan Oscarsson 2017-04-28 12:02:50 +02:00
parent 7f78929050
commit 3f0dcbf518
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ static void decode(struct sd *sd, struct demux_packet *packet)
int ass_len = packet->len;
if (sd->opts->sub_filter_SDH) {
ass_line = filter_SDH(sd, track->event_format, 1, ass_line, ass_len);
ass_len = strlen(ass_line);
ass_len = ass_line ? strlen(ass_line) : 0;
}
if (ass_line)
ass_process_chunk(track, ass_line, ass_len,