mirror of https://github.com/odrling/Aegisub
Fix y4m loading
This commit is contained in:
parent
bac8bad995
commit
f8a6c71a21
|
@ -225,7 +225,7 @@ void YUV4MPEGVideoProvider::ParseFileHeader(const std::vector<wxString>& tags) {
|
|||
t_h = (int)tmp_long1;
|
||||
}
|
||||
else if (tags[i].StartsWith("F", &tag)) {
|
||||
if (!(tag.BeforeFirst(':')).ToLong(&tmp_long1) && tag.AfterFirst(':').ToLong(&tmp_long2))
|
||||
if (!(tag.BeforeFirst(':').ToLong(&tmp_long1) && tag.AfterFirst(':').ToLong(&tmp_long2)))
|
||||
throw VideoOpenError("ParseFileHeader: invalid framerate");
|
||||
t_fps_num = (int)tmp_long1;
|
||||
t_fps_den = (int)tmp_long2;
|
||||
|
|
Loading…
Reference in New Issue