summaryrefslogtreecommitdiff
path: root/libavcodec/exr.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-01-22 10:42:57 +0100
committerPaul B Mahol <onemda@gmail.com>2020-01-22 10:43:49 +0100
commit2bae3da79e71d04dd7ec79cb7d48e845b69f6e21 (patch)
treed42e7a4f150503e86ce9017ef604f74972066cba /libavcodec/exr.c
parent44b1c5ddcf7b1c403cffb576f40d1f6c4231b063 (diff)
avcodec/exr: fix some small cosmetics nits
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r--libavcodec/exr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 49250dd095..1db30a1ae0 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -1183,7 +1183,7 @@ static int decode_block(AVCodecContext *avctx, void *tdata,
const uint8_t * a;
const uint8_t *rgb[3];
- for (c = 0; c < rgb_channel_count; c++){
+ for (c = 0; c < rgb_channel_count; c++) {
rgb[c] = channel_buffer[c];
}
@@ -1414,8 +1414,8 @@ static int decode_header(EXRContext *s, AVFrame *frame)
s->is_luma = 1;
} else if (!av_strcasecmp(ch_gb.buffer, "B") ||
!av_strcasecmp(ch_gb.buffer, "Z") ||
- !av_strcasecmp(ch_gb.buffer, "W")){
- channel_index = 2;
+ !av_strcasecmp(ch_gb.buffer, "W")) {
+ channel_index = 2;
s->is_luma = 0;
} else if (!av_strcasecmp(ch_gb.buffer, "A")) {
channel_index = 3;
@@ -1495,7 +1495,7 @@ static int decode_header(EXRContext *s, AVFrame *frame)
/* Check if all channels are set with an offset or if the channels
* are causing an overflow */
- if (!s->is_luma){/* if we expected to have at least 3 channels */
+ if (!s->is_luma) {/* if we expected to have at least 3 channels */
if (FFMIN3(s->channel_offsets[0],
s->channel_offsets[1],
s->channel_offsets[2]) < 0) {
@@ -1596,7 +1596,7 @@ static int decode_header(EXRContext *s, AVFrame *frame)
s->tile_attr.level_mode = tileLevel & 0x0f;
s->tile_attr.level_round = (tileLevel >> 4) & 0x0f;
- if (s->tile_attr.level_mode >= EXR_TILE_LEVEL_UNKNOWN){
+ if (s->tile_attr.level_mode >= EXR_TILE_LEVEL_UNKNOWN) {
avpriv_report_missing_feature(s->avctx, "Tile level mode %d",
s->tile_attr.level_mode);
ret = AVERROR_PATCHWELCOME;