Skip to content
Snippets Groups Projects
  • Frank Bossen's avatar
    a6d8f545
    Avoid accessing out of bounds elements · a6d8f545
    Frank Bossen authored
    When pruned == false and currCnt == MAX_NUM_HMVP_CANDS,
    memmove() copied element motionCand[MAX_NUM_HMVP_CANDS] which is
    out of bounds. With this fix one fewer elements is copied.
    The element that was previously incorrectly copied was overwritten
    by memcpy(). Hence there is no change in the result.
    See also #113
    a6d8f545
    History
    Avoid accessing out of bounds elements
    Frank Bossen authored
    When pruned == false and currCnt == MAX_NUM_HMVP_CANDS,
    memmove() copied element motionCand[MAX_NUM_HMVP_CANDS] which is
    out of bounds. With this fix one fewer elements is copied.
    The element that was previously incorrectly copied was overwritten
    by memcpy(). Hence there is no change in the result.
    See also #113
Slice.cpp 85.53 KiB