diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-07-13 22:50:59 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-07-13 23:02:11 +0000 |
commit | cd3136e84a0a56a552e596f7d0bb5a6f03566392 (patch) | |
tree | d0b4450be505671b07a339a07bf29785d1551085 /libavcodec/exr.c | |
parent | fedefe4a870b511995efc61807035c82b8ae80a9 (diff) | |
download | ffmpeg-cd3136e84a0a56a552e596f7d0bb5a6f03566392.tar.gz |
exr: print channel names not yet supported
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r-- | libavcodec/exr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 920bdbf886..0d66eecb9c 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -291,12 +291,14 @@ static int decode_frame(AVCodecContext *avctx, if (!strcmp(buf, "R")) channel_index = 0; - if (!strcmp(buf, "G")) + else if (!strcmp(buf, "G")) channel_index = 1; - if (!strcmp(buf, "B")) + else if (!strcmp(buf, "B")) channel_index = 2; - if (!strcmp(buf, "A")) + else if (!strcmp(buf, "A")) channel_index = 3; + else + av_log(avctx, AV_LOG_WARNING, "Unsupported channel %.256s\n", buf); while (bytestream_get_byte(&buf) && buf < channel_list_end) continue; /* skip */ |