You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02: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:
committed by
Vittorio Giovara
parent
e6c66f1e4e
commit
11467ecf51
@@ -816,7 +816,7 @@ static void mxf_read_pixel_layout(AVIOContext *pb, MXFDescriptor *descriptor)
|
|||||||
value = avio_r8(pb);
|
value = avio_r8(pb);
|
||||||
av_dlog(NULL, "pixel layout: code %#x\n", code);
|
av_dlog(NULL, "pixel layout: code %#x\n", code);
|
||||||
|
|
||||||
if (ofs < 16) {
|
if (ofs <= 14) {
|
||||||
layout[ofs++] = code;
|
layout[ofs++] = code;
|
||||||
layout[ofs++] = value;
|
layout[ofs++] = value;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user