Skip to content

Commit

Permalink
[core] use sizeof(uint32_t) in SRTDATA_MAXSIZE
Browse files Browse the repository at this point in the history
Since all usecase of SRTDATA_MAXSIZE are array of uint32_t.
  • Loading branch information
quink-black authored and maxsharabayko committed Jul 21, 2021
1 parent ec24e15 commit 1df29db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/crypto.h
Expand Up @@ -48,7 +48,7 @@ namespace srt
const size_t SRT_KMR_KMSTATE = 0;

#define SRT_CMD_MAXSZ HCRYPT_MSG_KM_MAX_SZ /* Maximum SRT custom messages payload size (bytes) */
const size_t SRTDATA_MAXSIZE = SRT_CMD_MAXSZ/sizeof(int32_t);
const size_t SRTDATA_MAXSIZE = SRT_CMD_MAXSZ/sizeof(uint32_t);

enum Whether2RegenKm {DONT_REGEN_KM = 0, REGEN_KM = 1};

Expand Down

0 comments on commit 1df29db

Please sign in to comment.