Fix SPS length being 4 bytes short

This commit is contained in:
Cameron Gutman 2019-05-01 19:21:05 -07:00
parent 6a7ac5c7cb
commit 5f167ce109

View File

@ -78,5 +78,5 @@ void gs_sps_fix(PLENTRY sps, int flags, uint8_t* out_buf, uint32_t* out_offset)
memcpy(out_buf+*out_offset, naluHeader, 4);
*out_offset += 4;
*out_offset = write_nal_unit(h264_stream, out_buf+*out_offset, 128);
*out_offset += write_nal_unit(h264_stream, out_buf+*out_offset, 128);
}