mirror of https://github.com/odrling/Aegisub
Fix y4m loading
This commit is contained in:
parent
229e5d98c5
commit
4c6be1fe55
|
@ -215,7 +215,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