Browse Source

avcodec/exr: handle case when |im - IM| == 1 for huff compression

tags/n4.4
Paul B Mahol 5 years ago
parent
commit
85ab9deb98
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/exr.c

+ 5
- 0
libavcodec/exr.c View File

@@ -420,6 +420,11 @@ static int huf_build_dec_table(EXRContext *s,
td->run_sym = i;
}

if (im > 0)
td->run_sym = 0;
else if (iM < 65535)
td->run_sym = 65535;

if (td->run_sym == -1) {
avpriv_request_sample(s->avctx, "No place for run symbol");
return AVERROR_PATCHWELCOME;


Loading…
Cancel
Save