mxfdec: reduce loop bound in mxf_read_pixel_layout()

Makes coverity less confused and code more readable.

Bug-Id: CID 732262
pull/90/head
Tomas Härdin 10 years ago committed by Vittorio Giovara
parent e6c66f1e4e
commit 11467ecf51
  1. 2
      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;
}

Loading…
Cancel
Save