Skip to content

Commit 8e4378f

Browse files
committed
video_codec: Fix potential out of bounds read
1 parent cce89ad commit 8e4378f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video_codec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ i444_8_to_uyvy(int width, int height, const unsigned char *in,
11311131
struct pixfmt_desc get_pixfmt_desc(codec_t pixfmt)
11321132
{
11331133
assert(pixfmt >= VIDEO_CODEC_FIRST);
1134-
assert(pixfmt <= VIDEO_CODEC_END);
1134+
assert(pixfmt < VIDEO_CODEC_END);
11351135
struct pixfmt_desc ret = { 0 };
11361136
ret.depth = codec_info[pixfmt].bits_per_channel;
11371137
ret.subsampling = codec_info[pixfmt].subsampling;

0 commit comments

Comments
 (0)