On 2012-07-12 13:40:23 +0200, Luca Barbato wrote:
> ---
> libavformat/matroskadec.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
> index 40c2eb1..c67fc07 100644
> --- a/libavformat/matroskadec.c
> +++ b/libavformat/matroskadec.c
> @@ -1345,6 +1345,10 @@ static int matroska_read_header(AVFormatContext *s)
> break;
> if (i >= FF_ARRAY_ELEMS(matroska_doctypes)) {
> av_log(s, AV_LOG_WARNING, "Unknown EBML doctype '%s'\n",
> ebml.doctype);
> + if (matroska->ctx->error_recognition & AV_EF_EXPLODE) {
s->error_recognition would be simpler
> + ebml_free(ebml_syntax, &ebml);
> + return AVERROR_INVALIDDATA;
> + }
> }
> ebml_free(ebml_syntax, &ebml);
>
patch ok with or without that changed
JAnne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel