mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-10-06 02:31:18 +07:00
In DecHelper::initDecoder(), mInputBuf was statically allocated with 1 MB (1024 * 1024 bytes). For high-resolution streams with large single-slice NAL units (such as Main_422_10_B_RExt_Sony_2 at 2560x1600, where the IDR slice NAL exceeds 1.1 MB), BitsFile::read() was capped by mInputBuf's capacity, truncating the input bitstream and resulting in incomplete decoding of the frame. - In DecHelper::decodeHeader(), dynamically reallocate mInputBuf once mWidth, mHeight, and mBitDepth are known if the required size exceeds the current buffer capacity. - In DecHelper::decodeFile(), update inputFrameSize to mInputBuf.capacity() instead of mWidth * mHeight * 3 (which didn't account for bit depths > 8). Test: ./hevc_dec_tests TAG=agy CONV=476d1054-10ff-4f19-88d5-a1c8dae7b57f |
||
|---|---|---|
| .. | ||
| DecHelper.cmake | ||
| DecHelper.cpp | ||
| DecHelper.h | ||
| DecTests.cpp | ||