1
0
Fork 0

flvdev: assume sizes to be broken if metadata header parsing failed

This commit is contained in:
Hendrik Leppkes 2017-05-03 01:33:33 +02:00
parent 24f1c83ed6
commit d474c9d4d2
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 2 additions and 0 deletions

View File

@ -1285,6 +1285,8 @@ retry:
av_log(s, AV_LOG_WARNING, "Adjusting next position due to index mismatch\n");
next = flv->validate_index[0].pos - 4;
}
if (type < 0)
flv->broken_sizes = 1;
goto skip;
} else if (type == TYPE_ONTEXTDATA) {
avpriv_request_sample(s, "OnTextData packet");