From f8a6c71a21af4e9b066dcd07342d1208c4a3dce6 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 13 Dec 2012 20:47:38 -0800 Subject: [PATCH] Fix y4m loading --- aegisub/src/video_provider_yuv4mpeg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/video_provider_yuv4mpeg.cpp b/aegisub/src/video_provider_yuv4mpeg.cpp index ca2f436ad..b5c033b36 100644 --- a/aegisub/src/video_provider_yuv4mpeg.cpp +++ b/aegisub/src/video_provider_yuv4mpeg.cpp @@ -225,7 +225,7 @@ void YUV4MPEGVideoProvider::ParseFileHeader(const std::vector& 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;