File tree 1 file changed +2
-2
lines changed
src/ImageSharp/Formats/Webp/BitWriter
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -592,7 +592,7 @@ private void CodeIntraModes()
592
592
593
593
private void WriteVp8Header ( Stream stream , uint size )
594
594
{
595
- Span < byte > buf = stackalloc byte [ WebpConstants . TagSize ] ;
595
+ Span < byte > buf = byte [ WebpConstants . TagSize ] ;
596
596
BinaryPrimitives . WriteUInt32BigEndian ( buf , ( uint ) WebpChunkType . Vp8 ) ;
597
597
stream . Write ( buf ) ;
598
598
BinaryPrimitives . WriteUInt32LittleEndian ( buf , size ) ;
@@ -604,7 +604,7 @@ private void WriteFrameHeader(Stream stream, uint size0)
604
604
uint profile = 0 ;
605
605
int width = this . enc . Width ;
606
606
int height = this . enc . Height ;
607
- byte [ ] vp8FrameHeader = new byte [ WebpConstants . Vp8FrameHeaderSize ] ;
607
+ Span < byte > vp8FrameHeader = stackalloc byte [ WebpConstants . Vp8FrameHeaderSize ] ;
608
608
609
609
// Paragraph 9.1.
610
610
uint bits = 0 // keyframe (1b)
You can’t perform that action at this time.
0 commit comments