Commit 433d2ae4 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/exr: set layer_match in all branches

Otherwise it is left to the value from the previous iteration
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent f9728fea
......@@ -1389,6 +1389,7 @@ static int decode_header(EXRContext *s, AVFrame *frame)
if (*ch_gb.buffer == '.')
ch_gb.buffer++; /* skip dot if not given */
} else {
layer_match = 0;
av_log(s->avctx, AV_LOG_INFO,
"Channel doesn't match layer : %s.\n", ch_gb.buffer);
}
......
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