mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
When parsing ass-force-style arguments, search for '=' and '.' characters with
strrchr. This allows using it for styles whose name contains those characters. Patch by Бранко Мајић <branko majic at gmail com>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23560 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
34402c3cf2
commit
387ccdc034
@ -331,13 +331,13 @@ void process_force_style(ass_track_t* track) {
|
||||
if (!list) return;
|
||||
|
||||
for (fs = list; *fs; ++fs) {
|
||||
eq = strchr(*fs, '=');
|
||||
eq = strrchr(*fs, '=');
|
||||
if (!eq)
|
||||
continue;
|
||||
*eq = '\0';
|
||||
token = eq + 1;
|
||||
|
||||
dt = strchr(*fs, '.');
|
||||
dt = strrchr(*fs, '.');
|
||||
if (dt) {
|
||||
*dt = '\0';
|
||||
style = *fs;
|
||||
|
Loading…
Reference in New Issue
Block a user