diff options
author | Tomas Härdin <tomas.hardin@codemill.se> | 2014-10-27 13:59:48 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-27 19:08:02 +0000 |
commit | 11467ecf519788f2e2f49c63a17eb600e618489e (patch) | |
tree | b29b4338997408ad3550e22b361436bc3a650a03 | |
parent | e6c66f1e4ea19a3aa6ed999c5cb92e1b682c7600 (diff) | |
download | ffmpeg-11467ecf519788f2e2f49c63a17eb600e618489e.tar.gz |
mxfdec: reduce loop bound in mxf_read_pixel_layout()
Makes coverity less confused and code more readable.
Bug-Id: CID 732262
-rw-r--r-- | libavformat/mxfdec.c | 2 |
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; } |