Commit 8c320b3c authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a9d50bb5'

* commit 'a9d50bb5':
  dcadec: Validate the lfe parameter

Conflicts:
	libavcodec/dcadec.c

See: 3b2cd83aMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 391e272c a9d50bb5
......@@ -735,10 +735,10 @@ static int dca_parse_frame_header(DCAContext *s)
s->lfe = get_bits(&s->gb, 2);
s->predictor_history = get_bits(&s->gb, 1);
if (s->lfe == 3) {
if (s->lfe > 2) {
s->lfe = 0;
avpriv_request_sample(s->avctx, "LFE = 3");
return AVERROR_PATCHWELCOME;
av_log(s->avctx, AV_LOG_ERROR, "Invalid LFE value: %d\n", s->lfe);
return AVERROR_INVALIDDATA;
}
/* TODO: check CRC */
......
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