[FFmpeg-devel,3/3] avcodec/exr: set layer_match in all branches

Submitted by Michael Niedermayer on Dec. 25, 2018, 10:15 p.m.

Details

Message ID 20181225221522.18064-3-michael@niedermayer.cc
State Accepted
Commit 433d2ae4353f3c513a45780845d9d8ca252cd4dc
Headers show

Commit Message

Michael Niedermayer Dec. 25, 2018, 10:15 p.m.
Otherwise it is left to the value from the previous iteration

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavcodec/exr.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 13755e1e6e..0f8b0fda9f 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -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);
                     }