mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-19 19:42:24 +02:00
sub: sdh filter fix for null
sdh filter returns NULL when subtitle line should be skipped
This commit is contained in:
parent
7f78929050
commit
3f0dcbf518
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user