From 7b7b17d42b4362d61a01baf095051d4f06992ce0 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Thu, 30 Mar 2006 10:53:01 +0000 Subject: [PATCH] Originally committed to SVN as r262. --- avisynth_prs/shoo.txt | 1 + prs/prs_display.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 avisynth_prs/shoo.txt diff --git a/avisynth_prs/shoo.txt b/avisynth_prs/shoo.txt new file mode 100644 index 000000000..65d19bc2b --- /dev/null +++ b/avisynth_prs/shoo.txt @@ -0,0 +1 @@ +Here be dragons. \ No newline at end of file diff --git a/prs/prs_display.cpp b/prs/prs_display.cpp index 5ecb3ae7c..cae4726c5 100644 --- a/prs/prs_display.cpp +++ b/prs/prs_display.cpp @@ -114,7 +114,8 @@ void PRSDisplay::WriteData(std::vector &vec) { // Read data void PRSDisplay::ReadData(std::vector &vec) { // Set length - unsigned __int32 size = vec.size(); + unsigned __int32 size = 4 + 4 + 4 + 4 + 2 + 2 + 1 + 1; + if (size != vec.size()) return; size_t pos = 0; // Write start time