Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2017-05-03 02:33:33 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-04 20:18:34 +0300
commit35c4b7d77fbe3a8a926da0d064cb4e3c5020e0cb (patch)
tree5b332db09dcd518dc5e988228378131c0977d683
parentfd58255c456244cc081fbbd8b50622ef3b254df2 (diff)
flvdev: assume sizes to be broken if metadata header parsing failed
-rw-r--r--libavformat/flvdec.c2
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");