mxfdec: reduce loop bound in mxf_read_pixel_layout()

Makes coverity less confused and code more readable.

Bug-Id: CID 732262
This commit is contained in:
Tomas Härdin 2014-10-27 13:59:48 +01:00 committed by Vittorio Giovara
parent e6c66f1e4e
commit 11467ecf51

View File

@ -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;
}