summaryrefslogtreecommitdiff
path: root/libavformat/mxfdec.c
diff options
context:
space:
mode:
authorTomas Härdin <tomas.hardin@codemill.se>2014-10-27 13:59:48 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-10-27 19:08:02 +0000
commit11467ecf519788f2e2f49c63a17eb600e618489e (patch)
treeb29b4338997408ad3550e22b361436bc3a650a03 /libavformat/mxfdec.c
parente6c66f1e4ea19a3aa6ed999c5cb92e1b682c7600 (diff)
mxfdec: reduce loop bound in mxf_read_pixel_layout()
Makes coverity less confused and code more readable. Bug-Id: CID 732262
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r--libavformat/mxfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index ff88f919a6..b71c80f14b 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -816,7 +816,7 @@ static void mxf_read_pixel_layout(AVIOContext *pb, MXFDescriptor *descriptor)
value = avio_r8(pb);
av_dlog(NULL, "pixel layout: code %#x\n", code);
- if (ofs < 16) {
+ if (ofs <= 14) {
layout[ofs++] = code;
layout[ofs++] = value;
}