Make FLV input read until errors, instead of aborting entirely.

This commit is contained in:
Thulinma 2018-11-15 13:22:00 +01:00
parent 739c132a61
commit 552240b528
2 changed files with 5 additions and 0 deletions

View file

@ -396,6 +396,8 @@ FLV::Tag::~Tag() {
/// This operator checks for self-assignment.
FLV::Tag & FLV::Tag::operator=(const FLV::Tag & O) {
if (this != &O) { //no self-assignment
done = true;
sofar = 0;
len = O.len;
if (len > 0) {
if (checkBufferSize()) {