Commit d24eb9a3 authored by Martin Vignali's avatar Martin Vignali Committed by Paul B Mahol

avcodec/exr: indent the if (layer_match) part

parent 753088a2
...@@ -1348,23 +1348,23 @@ static int decode_header(EXRContext *s) ...@@ -1348,23 +1348,23 @@ static int decode_header(EXRContext *s)
} }
if (layer_match) { /* only search channel if the layer match is valid */ if (layer_match) { /* only search channel if the layer match is valid */
if (!strcmp(ch_gb.buffer, "R") || if (!strcmp(ch_gb.buffer, "R") ||
!strcmp(ch_gb.buffer, "X") || !strcmp(ch_gb.buffer, "X") ||
!strcmp(ch_gb.buffer, "U")) !strcmp(ch_gb.buffer, "U"))
channel_index = 0; channel_index = 0;
else if (!strcmp(ch_gb.buffer, "G") || else if (!strcmp(ch_gb.buffer, "G") ||
!strcmp(ch_gb.buffer, "Y") || !strcmp(ch_gb.buffer, "Y") ||
!strcmp(ch_gb.buffer, "V")) !strcmp(ch_gb.buffer, "V"))
channel_index = 1; channel_index = 1;
else if (!strcmp(ch_gb.buffer, "B") || else if (!strcmp(ch_gb.buffer, "B") ||
!strcmp(ch_gb.buffer, "Z") || !strcmp(ch_gb.buffer, "Z") ||
!strcmp(ch_gb.buffer, "W")) !strcmp(ch_gb.buffer, "W"))
channel_index = 2; channel_index = 2;
else if (!strcmp(ch_gb.buffer, "A")) else if (!strcmp(ch_gb.buffer, "A"))
channel_index = 3; channel_index = 3;
else else
av_log(s->avctx, AV_LOG_WARNING, av_log(s->avctx, AV_LOG_WARNING,
"Unsupported channel %.256s.\n", ch_gb.buffer); "Unsupported channel %.256s.\n", ch_gb.buffer);
} }
/* skip until you get a 0 */ /* skip until you get a 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