make sure opencv builds fine with the recent versions of libav (e.g. from Ubuntu 14.10)

This commit is contained in:
Vadim Pisarevsky
2015-04-22 21:57:29 +03:00
parent a69b435c92
commit 2b2e3ee93c
7 changed files with 241 additions and 142 deletions

View File

@@ -132,6 +132,7 @@ public:
writer << img;
}
writer.release();
if (!created) created = true;
else remove(filename.c_str());
}