From 11467ecf519788f2e2f49c63a17eb600e618489e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Mon, 27 Oct 2014 13:59:48 +0100 Subject: mxfdec: reduce loop bound in mxf_read_pixel_layout() Makes coverity less confused and code more readable. Bug-Id: CID 732262 --- libavformat/mxfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/mxfdec.c') 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; } -- cgit v1.2.1