diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-05-03 02:33:33 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-05-03 02:33:33 +0300 |
commit | 0c1bfd23c6f480ed903ddb50b17598b9049a8b2b (patch) | |
tree | 98a56736ad95f4580085d8c8a39e51a70335a29b | |
parent | a987c686ba07c0879462d2e08d71aa961780e974 (diff) |
flvdev: assume sizes to be broken if metadata header parsing failedmpc-hc-1.7.11-1
-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"); |