diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-05-03 02:33:33 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-08-04 20:18:34 +0300 |
commit | 35c4b7d77fbe3a8a926da0d064cb4e3c5020e0cb (patch) | |
tree | 5b332db09dcd518dc5e988228378131c0977d683 /libavformat | |
parent | fd58255c456244cc081fbbd8b50622ef3b254df2 (diff) |
flvdev: assume sizes to be broken if metadata header parsing failed
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/flvdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 94c9e28334..0b80d9efdb 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -1000,6 +1000,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"); |