mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-13 08:34:47 +00:00
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:
parent
e6c66f1e4e
commit
11467ecf51
@ -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…
x
Reference in New Issue
Block a user