Commit a3d89052 authored by Paul B Mahol's avatar Paul B Mahol

exr: reset compression in decode_frame()

This fixes decoding of images if compression changes.
Regression since b040ffc8.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 6b8f2119
......@@ -258,6 +258,7 @@ static int decode_frame(AVCodecContext *avctx,
s->channel_offsets[2] = -1;
s->channel_offsets[3] = -1;
s->bits_per_color_id = -1;
s->compr = -1;
if (buf_size < 10) {
av_log(avctx, AV_LOG_ERROR, "Too short header to parse\n");
......@@ -645,8 +646,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
avcodec_get_frame_defaults(&s->picture);
avctx->coded_frame = &s->picture;
s->compr = -1;
return 0;
}
......
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