Skip to content

Commit

Permalink
Revert "Fixed potential rare corner cases" (except SVE-based code)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-boiko authored and zlatinski committed Dec 4, 2024
1 parent 8102c9b commit 4c439a8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions vk_video_decoder/libs/NvVideoParser/src/NextStartCodeAVX2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ size_t VulkanVideoDecoder::next_start_code<SIMD_ISA::AVX2>(const uint8_t *pdatai
}
} // main processing loop end
m_BitBfr = (pdatain[i-2] << 8) | pdatain[i-1];
if (i >= datasize) {
found_start_code = false;
return datasize;
}
}
// process a tail (rest):
uint32_t bfr = m_BitBfr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ size_t VulkanVideoDecoder::next_start_code<SIMD_ISA::AVX512>(const uint8_t *pdat
}
} // main processing loop end
m_BitBfr = (pdatain[i-2] << 8) | pdatain[i-1];
if (i >= datasize) {
found_start_code = false;
return datasize;
}
}
// process a tail (rest):
uint32_t bfr = m_BitBfr;
Expand Down
4 changes: 0 additions & 4 deletions vk_video_decoder/libs/NvVideoParser/src/NextStartCodeNEON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ size_t VulkanVideoDecoder::next_start_code<SIMD_ISA::NEON>(const uint8_t *pdatai
}
} // main processing loop end
m_BitBfr = (pdatain[i-2] << 8) | pdatain[i-1];
if (i >= datasize) {
found_start_code = false;
return datasize;
}
}
// process a tail (rest):
uint32_t bfr = m_BitBfr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ size_t VulkanVideoDecoder::next_start_code<SIMD_ISA::SSSE3>(const uint8_t *pdata
}
} // main processing loop end
m_BitBfr = (pdatain[i-2] << 8) | pdatain[i-1];
if (i >= datasize) {
found_start_code = false;
return datasize;
}
}
// process a tail (rest):
uint32_t bfr = m_BitBfr;
Expand Down

0 comments on commit 4c439a8

Please sign in to comment.