Fix NAL parsing logic
This commit is contained in:
@@ -201,10 +201,10 @@ void TightX264Encoder::writeRect(const PixelBuffer* pb, const Palette& palette)
|
|||||||
if (!next)
|
if (!next)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
nalstarts[i_nals] = next + 3;
|
remlen -= (next + 3) - nalptr;
|
||||||
|
nalptr = nalstarts[i_nals] = next + 3;
|
||||||
|
|
||||||
nalptr += 4; // 3 prefix, 1 type
|
i_nals++;
|
||||||
remlen -= 4;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Lens
|
// Lens
|
||||||
|
|||||||
Reference in New Issue
Block a user