Commit 11322992 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'da7d839a'

* commit 'da7d839a':
  ffv1dec: check that global parameters do not change in version 0/1

Conflicts:
	libavcodec/ffv1dec.c

See: b05cd1eaMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents b097d176 da7d839a
...@@ -640,12 +640,12 @@ static int read_header(FFV1Context *f) ...@@ -640,12 +640,12 @@ static int read_header(FFV1Context *f)
transparency = get_rac(c, state); transparency = get_rac(c, state);
if (f->plane_count) { if (f->plane_count) {
if ( colorspace != f->colorspace if (colorspace != f->colorspace ||
|| bits_per_raw_sample != f->avctx->bits_per_raw_sample bits_per_raw_sample != f->avctx->bits_per_raw_sample ||
|| chroma_planes != f->chroma_planes chroma_planes != f->chroma_planes ||
|| chroma_h_shift!= f->chroma_h_shift chroma_h_shift != f->chroma_h_shift ||
|| chroma_v_shift!= f->chroma_v_shift chroma_v_shift != f->chroma_v_shift ||
|| transparency != f->transparency) { transparency != f->transparency) {
av_log(f->avctx, AV_LOG_ERROR, "Invalid change of global parameters\n"); av_log(f->avctx, AV_LOG_ERROR, "Invalid change of global parameters\n");
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment